25 #ifndef GEOMETRYCORE_H_ 26 #define GEOMETRYCORE_H_
A core that contains geometry information to be rendered.
GeometryCore(GLenum primitiveType, DrawMode drawMode)
std::vector< GLuint > vboAttributes_
Base class for all cores (abstract).
static GeometryCoreSP create(GLenum primitiveType, DrawMode drawMode)
int getNTriangles() const
Local header file for GLEW library.
std::function< void(GLenum, GLsizei)> drawFunc_
GeometryCore * addAttributeData(GLuint location, const GLfloat *data, GLsizeiptr size, GLint dim, GLenum usage)
The central render state that collects information about the current shader, transformations,...
GeometryCore * setElementIndexData(const GLuint *data, GLsizeiptr size, GLenum usage)
virtual void render(RenderState *renderState)
DrawMode
Draw mode for vertex buffer objects.
Internal definitions required by most classes.
Base class for all cores (abstract).