Created
September 28, 2014 20:25
-
-
Save terryjsmith/91c08d84b95605dbb94c to your computer and use it in GitHub Desktop.
Evolution Renderable class v1.1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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