Skip to content

Instantly share code, notes, and snippets.

@terryjsmith
Last active August 29, 2015 14:06
Show Gist options
  • Save terryjsmith/a3d604f809c95164a2aa to your computer and use it in GitHub Desktop.
Save terryjsmith/a3d604f809c95164a2aa to your computer and use it in GitHub Desktop.
Evolution Renderable class
class Renderable : public Component {
public:
Renderable();
~Renderable();
public:
// Position in world space
glm::vec3 position;
// Local rotation
glm::quat rotation;
// The format of the vertex buffer
unsigned char vertexFormat;
// 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;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment