32 : position(position), normal(normal), tex(tex) {}
47 std::vector<Vertex>
vbo;
48 std::vector<uint16_t>
ibo;
unsigned get_num_elements() const
Vertex(vec3 position, vec3 normal, vec2 tex)
GLuint get_vertex_array() const
Mesh create_box_mesh(const AABB &aabb)
std::vector< Vertex > vbo
Mesh create_sphere_mesh(float radius, vec3 center, unsigned vertices_per_circumference)
std::vector< uint16_t > ibo
const AABB & get_aabb() const
typedef GLuint(GL_APIENTRYP PFNGLGETDEBUGMESSAGELOGKHRPROC)(GLuint count