Contains the data for a mesh in OpenGL.
#include <helpers.hpp>
|
GLuint | vao {0u} |
| OpenGL name of the Vertex Array Object.
|
|
GLuint | bo {0u} |
| OpenGL name of the Buffer Object.
|
|
GLuint | ibo {0u} |
| OpenGL name of the Buffer Object for indices.
|
|
GLsizei | vertices_nb {0} |
| number of vertices stored in bo
|
|
GLsizei | indices_nb {0} |
| number of indices stored in ibo
|
|
texture_bindings | bindings {} |
| texture bindings for this mesh
|
|
material_data | material {} |
| constant values for the material of this mesh
|
|
GLenum | drawing_mode {GL_TRIANGLES} |
| OpenGL drawing mode, i.e. GL_TRIANGLES, GL_LINES, etc.
|
|
std::string | name {"un-named mesh"} |
| Name of the mesh; used for debugging purposes.
|
|
◆ bindings
◆ bo
GLuint bonobo::mesh_data::bo {0u} |
◆ drawing_mode
GLenum bonobo::mesh_data::drawing_mode {GL_TRIANGLES} |
◆ ibo
GLuint bonobo::mesh_data::ibo {0u} |
◆ indices_nb
GLsizei bonobo::mesh_data::indices_nb {0} |
◆ material
◆ name
std::string bonobo::mesh_data::name {"un-named mesh"} |
◆ vao
GLuint bonobo::mesh_data::vao {0u} |
◆ vertices_nb
GLsizei bonobo::mesh_data::vertices_nb {0} |
The documentation for this struct was generated from the following file: