FontTextureSource

Adapter from a font (as in ae.utils.graphics.fonts) and ProceduralTextureSource .

Constructors

this
this(Font font, Renderer.COLOR color)
Undocumented in source.

Members

Functions

drawText
void drawText(Renderer r, int x, int y, S s)

Draw a string.

drawTo
void drawTo(TextureCanvas dest)
Undocumented in source. Be warned that the author may not have intended to support it.
getSize
void getSize(int width, int height)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

color
Renderer.COLOR color;
Undocumented in source.
font
Font font;
Undocumented in source.

Inherited Members

From ProceduralTextureSource

getSize
void getSize(int width, int height)

Query the size of the procedural texture

getPixels
TextureCanvas getPixels()

Implementation of getPixels using drawTo and a cached copy.

Meta