b2dDrawText

Draws text string at specified position using loaded font. Takes text (string to display, any UTF-8 text), x (X position in pixels, integer), y (Y position in pixels, integer), centre (alignment: 0=left-aligned, 1=centered on x position), font (font handle from b2dLoadFont, positive integer). Returns nothing.

2D Overlay

Parameters & Returns

Parameters

text String
x Int
y Int
centre Int
font Int

Returns

Void

Quick Summary

Draws text string at specified position using loaded font. Takes text (string to display, any UTF-8 text), x (X position in pixels, integer), y (Y position in pixels, integer), centre (alignment: 0=left-aligned, 1=centered on x position), font (font handle from b2dLoadFont, positive integer). Returns nothing.

Technical Exegesis...

Draws text string at specified position using loaded font. Takes text (string to display, any UTF-8 text), x (X position in pixels, integer), y (Y position in pixels, integer), centre (alignment: 0=left-aligned, 1=centered on x position), font (font handle from b2dLoadFont, positive integer). Returns nothing. Queues text draw command to deferred rendering buffer, executed during b3dRenderWorld. Uses current color state from b2dSetColor and alpha from b2dSetAlpha.

Example

Example.bam
; No example implemented yet