static const char vertexShaderFilename[]
const char fontFragmentShaderSource[]
Fragment shader source code for text rendering.
void loadData(const char *filename, unsigned char **textureData)
Load texture data from a file into memory.
const char fontVertexShaderSource[]
Vertex shader source code for text rendering.
float * textTextureCoordinates
static const int textureCharacterHeight
The height (in pixels) of the characters in the text texture.
void clear(void)
Removes the current string from the class.
Text(void)
Overloaded default constructor.
struct AstcTextures::Vec2 Vec2
Type representing texture coordinates.
static const char textureFilename[]
static const int textureCharacterWidth
The width (in pixels) of the characters in the text texture.
~Text(void)
Overloaded default destructor.
static const char fragmentShaderFilename[]
static const float scale
Scaling factor to use when rendering the text.
void draw(void)
Draw the text to the screen.
void addString(int xPosition, int yPosition, const char *string, int red, int green, int blue, int alpha)
Add a std::string to be drawn to the screen.