b2dDrawText

Draws text string at specified position using loaded font. Takes text (string to display; ASCII with a bitmap font, or full Unicode/UTF-8 with a TTF font (see b2dLoadTTF)), 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; ASCII with a bitmap font, or full Unicode/UTF-8 with a TTF font (see b2dLoadTTF)), 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; ASCII with a bitmap font, or full Unicode/UTF-8 with a TTF font (see b2dLoadTTF)), 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 b2dFlip.

Example

Example.bam
; No example implemented yet