Last active
August 29, 2015 14:06
-
-
Save terryjsmith/a3d604f809c95164a2aa to your computer and use it in GitHub Desktop.
Evolution Renderable class
This file contains 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 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