HTextElement

An element that draws text horizontally.

Constructors

this
this()

Members

Functions

clear
void clear()
draw
void draw(Shader s)
loadText
void loadText(FontFace face, dstring text)

Renders the text texture, And calculates position of each characters.

Properties

polys
polys [@property getter]

Polygons to be drawn.

size
size [@property getter]

Size of area text will be drawn.

Structs

Poly
struct Poly
Undocumented in source.

Variables

_indicesBuf
ElementArrayBuffer _indicesBuf;
Undocumented in source.
_polyCnt
size_t _polyCnt;
Undocumented in source.
_polys
Poly[] _polys;
Undocumented in source.
_posBuf
ArrayBuffer _posBuf;
Undocumented in source.
_size
vec2 _size;
Undocumented in source.
_texture
TextTexture _texture;
Undocumented in source.
_uvBuf
ArrayBuffer _uvBuf;
Undocumented in source.

Inherited Members

From Element

clear
void clear()

Clears all buffers.

draw
void draw(Shader )

Draws the element using the shader.

Meta