Blackcomb  prealpha
Public Member Functions | Public Attributes | List of all members
blackcomb::renderer::Mesh Class Reference

Loads and stores mesh data. More...

#include <Mesh.h>

Public Member Functions

 Mesh (std::vector< GLfloat > modelData, std::vector< GLuint > indices)
 Mesh (std::vector< Vertex > &vertices, std::vector< GLuint > &indices)
void cleanup ()
 Get rid of the mesh's OpenGL objects.
void render ()
 Draw this mesh. More...

Public Attributes

GLuint vao = 0
unsigned long numVerts
unsigned long numIndices

Detailed Description

Loads and stores mesh data.

Member Function Documentation

◆ render()

void blackcomb::renderer::Mesh::render ( )

Draw this mesh.

Will not work on its own, you should probably bind this to a Model and use Model::render instead.

The documentation for this class was generated from the following files: