float * textTextureCoordinates
Functions for drawing text in OpenGL ES.
Text(const char *resourceDirectory, int windowWidth, int windowHeight)
Constructor for Text.
static const std::string textureFilename
static const float scale
Scaling factor to use when rendering the text.
void clear(void)
Removes the current string from the class.
static const std::string vertexShaderFilename
static const int textureCharacterHeight
The height (in pixels) of the characters in the text texture.
static const int textureCharacterWidth
The width (in pixels) of the characters in the text texture.
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.
static const std::string fragmentShaderFilename
void draw(void)
Draw the text to the screen.