WIP Renderer

This commit is contained in:
Tobias Dahl
2014-03-09 20:36:19 +01:00
parent b5349ba93c
commit a9e3e91203
2 changed files with 17 additions and 8 deletions
+10 -2
View File
@@ -31,7 +31,15 @@ public:
int HEIGHT, WIDTH;
std::vector<Model*> ModelsToRender;
struct ModelData
{
Model* model;
glm::mat4 modelMatrix;
ModelData(Model* _model, glm::mat4 _modelMatrix) : model(_model), modelMatrix(_modelMatrix)
{}
};
std::vector<ModelData*> ModelsToRender;
Renderer();
@@ -40,7 +48,7 @@ public:
void Draw(double dt);
void DrawText();
void AddModelToDraw(Model*);
void AddModelToDraw(Model*, glm::mat4);
void AddTextToDraw();
void LoadContent();