MVE - Multi-View Environment mve-devel
|
OpenGL renderer that takes a mesh and automatically creates the appropriate VBOs and a vertex array object. More...
#include <mesh_renderer.h>
Public Types | |
typedef std::shared_ptr< MeshRenderer const > | ConstPtr |
typedef std::shared_ptr< MeshRenderer > | Ptr |
![]() | |
typedef std::pair< VertexBuffer::Ptr, std::string > | BoundVBO |
typedef std::shared_ptr< VertexArray const > | ConstPtr |
typedef std::shared_ptr< VertexArray > | Ptr |
typedef std::vector< BoundVBO > | VBOList |
Public Member Functions | |
void | set_mesh (mve::TriangleMesh::ConstPtr mesh) |
![]() | |
virtual | ~VertexArray (void) |
void | add_vbo (VertexBuffer::Ptr vbo, std::string const &name) |
Adds a generic VBO with attribute name. | |
void | draw (void) |
Binds the shader and issues drawing commands. | |
void | remove_vbo (std::string const &name) |
Removes a VBO from the list. | |
void | reset_vertex_array (void) |
Removes VBOs and creates a new vertex array. | |
void | set_index_vbo (VertexBuffer::Ptr vbo) |
Sets the vertex indices VBO with triangle definitions. | |
void | set_primitive (GLuint primitive) |
Sets the primitive type to be used with the corresponding draw call. | |
void | set_shader (ShaderProgram::Ptr shader) |
Assigns a shader that is used for drawing the vertex array. | |
void | set_vertex_vbo (VertexBuffer::Ptr vbo) |
Sets the vertex VBO with vertex positions. | |
Static Public Member Functions | |
static Ptr | create (mve::TriangleMesh::ConstPtr mesh) |
static Ptr | create (void) |
![]() | |
static Ptr | create (void) |
Additional Inherited Members | |
![]() | |
VertexArray (void) | |
void | assign_attrib (BoundVBO const &bound_vbo) |
OpenGL renderer that takes a mesh and automatically creates the appropriate VBOs and a vertex array object.
Definition at line 28 of file mesh_renderer.h.
typedef std::shared_ptr<MeshRenderer const> ogl::MeshRenderer::ConstPtr |
Definition at line 32 of file mesh_renderer.h.
typedef std::shared_ptr<MeshRenderer> ogl::MeshRenderer::Ptr |
Definition at line 31 of file mesh_renderer.h.
|
inlinestatic |
Definition at line 53 of file mesh_renderer.h.
|
inlinestatic |
Definition at line 47 of file mesh_renderer.h.
void ogl::MeshRenderer::set_mesh | ( | mve::TriangleMesh::ConstPtr | mesh | ) |
Definition at line 16 of file mesh_renderer.cc.