1 #ifndef TRIANGLESHAPE_HPP 2 #define TRIANGLESHAPE_HPP 30 void updateNormals(GLfloat * vertices,
unsigned int verticeCount,
unsigned int * indices,
unsigned int stride);
99 #endif // TRIANGLESHAPE_HPP GLfloat * getVertexColors()
Get the current vertex colors for the TriangleShape.
Definition: TriangleShape.hpp:83
Definition: GLDrawable.hpp:16
void setVertexColors(GLfloat colors [16])
Set the individual values for the vertex colors of the TriangleShape.
Definition: TriangleShape.hpp:67
void setFillColor(glm::vec4 fillColor)
TriangleShape()
Default constructor - INACCESSIBLE!
Definition: TriangleShape.hpp:28
GLfloat m_vertexColors[16]
Array of individual vertex colors.
Definition: TriangleShape.hpp:95
Stores the states used to draw OpenGL objects.
Definition: GLStates.hpp:16
void draw(GLStates &states)
Draw the TriangleShape to the screen.
Definition: TriangleShape.hpp:83
void updateNormals(GLfloat *vertices, unsigned int verticeCount, unsigned int *indices, unsigned int stride)
glm::vec4 m_fillColor
Triangle fill color.
Definition: TriangleShape.hpp:94
void updateGeometry()
Update the internal geometry of the TriangleShape.
Create a drawable TriangleShape using OpenGL. Useful for basic test programs, but not very flexible -...
Definition: TriangleShape.hpp:21
glm::vec4 & getFillColor()
Get the current fill color for the TriangleShape.
Definition: TriangleShape.hpp:67