DynamicTextGlyph

class DynamicTextGlyph

Bases: TextGlyph

A specialization on TextGlyph that is generated and stored by a DynamicTextFont. This keeps some additional information, such as where the glyph appears on a texture map.

Inheritance diagram

Inheritance diagram of DynamicTextGlyph

PN_stdfloat get_bottom(void) const

Returns the vertex coordinates that can be used when creating a custom text renderer.

static TypeHandle get_class_type(void)
PN_stdfloat get_left(void) const

Returns the vertex coordinates that can be used when creating a custom text renderer.

DynamicTextPage *get_page(void) const

Returns the DynamicTextPage that this glyph is on.

PN_stdfloat get_right(void) const

Returns the vertex coordinates that can be used when creating a custom text renderer.

PN_stdfloat get_top(void) const

Returns the vertex coordinates that can be used when creating a custom text renderer.

PN_stdfloat get_uv_bottom(void) const

Returns the UV coordinates that can be used when creating a custom text renderer.

PN_stdfloat get_uv_left(void) const

Returns the UV coordinates that can be used when creating a custom text renderer.

PN_stdfloat get_uv_right(void) const

Returns the UV coordinates that can be used when creating a custom text renderer.

PN_stdfloat get_uv_top(void) const

Returns the UV coordinates that can be used when creating a custom text renderer.

bool intersects(int x, int y, int x_size, int y_size) const

Returns true if the particular position this glyph has been assigned to overlaps the rectangle whose top left corner is at x, y and whose size is given by x_size, y_size, or false otherwise.