Rendering sprites

This commit is contained in:
Stiffly
2014-05-06 13:52:34 +02:00
parent 262d259681
commit 398b157b89
5 changed files with 52 additions and 4 deletions
+2
View File
@@ -23,6 +23,7 @@ public:
int HEIGHT, WIDTH;
std::list<std::tuple<Model*, glm::mat4, bool, bool>> ModelsToRender;
std::list<std::tuple<Texture*, glm::mat4>> TexturesToRender;
int Lights;
std::vector<float> Light_position;
std::vector<float> Light_specular;
@@ -40,6 +41,7 @@ public:
void DrawText();
void AddModelToDraw(Model* model, glm::vec3 position, glm::quat orientation, glm::vec3 scale, bool visible, bool shadowCaster);
void AddTextureToDraw(Texture* texture, glm::vec3 position, glm::quat orientation, glm::vec3 scale);
void AddTextToDraw();
void AddPointLightToDraw(
glm::vec3 _position,