21 void updateNormals(GLfloat * vertices,
unsigned int verticeCount,
unsigned int stride);
109 #endif // GLSPRITE_HPP GLTexture * m_texture
A pointer to a GLTexture to use for the GLSprite.
Definition: GLSprite.hpp:101
Definition: GLDrawable.hpp:16
void draw(GLStates &states)
Draw the GLSprite to the screen.
Definition: GLSprite.hpp:90
GLTexture * getTexture()
Definition: GLSprite.hpp:58
void updateNormals(GLfloat *vertices, unsigned int verticeCount, unsigned int stride)
Update the internal lighting normals of the GLSprite.
GLfloat * getVertexColors()
Get the current vertex colors for the GLSprite.
Definition: GLSprite.hpp:90
GLRect m_textureRect
Stores the value of the GLTexture's texture rect.
Definition: GLSprite.hpp:102
GLfloat m_vertexColors[16]
Array of individual vertex colors.
Definition: GLSprite.hpp:104
void setFillColor(glm::vec4 fillColor)
GLSprite()
Default constructor - not the one you're looking for. See below.
Stores the states used to draw OpenGL objects.
Definition: GLStates.hpp:16
GLRect & getTextureRect()
Definition: GLSprite.hpp:49
Useful for defining size and origin of an OpenGL object.
Definition: GLTransformable.hpp:15
void updateGeometry()
Update the internal geometry of the GLSprite.
glm::vec4 m_fillColor
Fill color.
Definition: GLSprite.hpp:103
void setTextureRect(GLRect r)
Definition: GLSprite.hpp:47
Class for creating textures usable with OpenGL from SDL.
Definition: GLTexture.hpp:57
void setVertexColors(GLfloat colors [16])
Set the individual values for the vertex colors of the GLSprite.
Definition: GLSprite.hpp:58
glm::vec4 & getFillColor()
Get the current fill color for the GLSprite.
Definition: GLSprite.hpp:74
Definition: GLSprite.hpp:13