CG_Labs 2021.2
Loading...
Searching...
No Matches
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.
 
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.
 

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: