BMText

Implementation containing text drawable functions using an AngelCode BMFont. Nice and fast for unscaled text, reduced memory usage, render time scales with text length, no re-render times, requires some additional shader uniforms.

Constructors

this
this(BMFont font)

Creates an empty bmfont text

Members

Functions

draw
void draw(IRenderTarget target, ShaderProgram shader = null)

Dynamically draws the text onto a target. Requires the shader to have texRect vec4(uvX, uvY, uvW, uvH) and sizeRect vec4(posX, posY, width, height) uniforms.

Properties

multiline
bool multiline [@property getter]

Returns if this text should be rendered multiline.

multiline
bool multiline [@property setter]

Sets if this text should be rendered multiline.

scale
float scale [@property getter]

Gets the scale in percent.

scale
float scale [@property setter]

Sets the scale in percent.

text
string text [@property getter]

Gets the text.

text
string text [@property setter]

Modifies the text.

Meta