1 #ifndef RectangleShape_HPP 2 #define RectangleShape_HPP 33 void updateNormals(GLfloat * vertices,
unsigned int verticeCount,
unsigned int stride);
103 #endif // RectangleShape_HPP void draw(GLStates &states)
Draw the RectangleShape to the screen.
Definition: RectangleShape.hpp:86
Definition: GLDrawable.hpp:16
void updateGeometry()
Update the internal geometry of the RectangleShape.
Create a drawable RectangleShape using OpenGL. For more complex OpenGL geometry see the Mesh class...
Definition: RectangleShape.hpp:19
void setFillColor(glm::vec4 fillColor)
virtual ~RectangleShape()
Stores the states used to draw OpenGL objects.
Definition: GLStates.hpp:16
glm::vec4 & getFillColor()
Get the current fill color for the RectangleShape.
Definition: RectangleShape.hpp:70
void updateNormals(GLfloat *vertices, unsigned int verticeCount, unsigned int stride)
Update the internal lighting normals of the RectangleShape.
Definition: RectangleShape.hpp:26
GLfloat m_vertexColors[16]
Array of individual vertex colors.
Definition: RectangleShape.hpp:98
RectangleShape()
Default constructor - INACCESSIBLE!
Definition: RectangleShape.hpp:26
glm::vec4 m_fillColor
Rectangle fill color.
Definition: RectangleShape.hpp:97
GLfloat * getVertexColors()
Get the current vertex colors for the RectangleShape.
Definition: RectangleShape.hpp:86
void setVertexColors(GLfloat colors [16])
Set the individual values for the vertex colors of the RectangleShape.
Definition: RectangleShape.hpp:70