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