25 #ifndef GRAPHICS_MESH_MESH_H 26 #define GRAPHICS_MESH_MESH_H 42 Mesh(GLuint type = GL_TRIANGLES, GLuint hint = GL_STATIC_DRAW);
109 #endif // GRAPHICS_MESH_MESH_H
The global graphics manager.
void setHint(GLuint hint)
const Common::UString & getName() const
A class holding an UTF-8 string.
VertexBuffer * getVertexBuffer()
void init()
General mesh initialisation, queuing the mesh for GL resource creation.
A container of OpenGL elements.
void setType(GLuint type)
Buffer containing vertex data.
void renderBind()
Follows the steps of renderImmediate, but broken into different functions.
VertexBuffer _vertexBuffer
const glm::vec3 & getCentre() const
virtual void doRebuild()
Initialise GL components with data taken from vertex buffers.
virtual void doDestroy()
Free GL resources.
A container of OpenGL elements.
Buffer containing indices data.
void setName(const Common::UString &name)
IndexBuffer * getIndexBuffer()
Mesh(GLuint type=GL_TRIANGLES, GLuint hint=GL_STATIC_DRAW)
GLuint _vao
Vertex Array Object handle. GL3.x only.