Mesh Drawable

The structure mesh_drawable automatically converts the data of mesh into GPU compatible VBOs, and attach shader-related elements such as shader program, texture image, and uniform variables. mesh_drawable can be displayed using the draw() function.
struct mesh_drawable
// OpenGL VBOs - per vertex attributes
vbo_position
vbo_normal
vbo_color
vbo_uv

ebo_connectivity

shader, texture

// Uniform parameters
affine model
material_structure material

Conceptual structure of a mesh_drawable

Code Reference

- mesh_drawable.hpp
16_drawable/mesh_drawable/mesh_drawable.hpp