Skip to content

Instantly share code, notes, and snippets.

@terryjsmith
Created September 28, 2014 20:25
Show Gist options
  • Save terryjsmith/91c08d84b95605dbb94c to your computer and use it in GitHub Desktop.
Save terryjsmith/91c08d84b95605dbb94c to your computer and use it in GitHub Desktop.
Evolution Renderable class v1.1
class Renderable : public Component {
public:
Renderable();
~Renderable();
public:
// Position in world space
glm::vec3 position;
// Local rotation
glm::quat rotation;
// The vertex and index buffers
unsigned int vertexBuffer, indexBuffer;
// Any textures attached to this renderable
unsigned int textures[2];
// The loaded shader program used to render this
unsigned int program;
// The vertex array for this renderable
unsigned int vertexAttribObject;
// The number of triangles
unsigned int numTriangles;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment