CG_Labs  2021.2
Public Attributes | List of all members
bonobo::mesh_data Struct Reference

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...
 

Member Data Documentation

◆ bindings

texture_bindings bonobo::mesh_data::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

material_data bonobo::mesh_data::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: