WIP (Really really broken tho)

This commit is contained in:
Tobias Dahl
2014-03-07 19:07:07 +01:00
parent 95a36794e3
commit 1f48279bc6
7 changed files with 88 additions and 129 deletions
+7 -6
View File
@@ -20,23 +20,22 @@
#include "glerror.h"
#include "ShaderProgram.h"
#include "Model.h"
class Renderer
{
public:
std::shared_ptr<ShaderProgram> m_ShaderProgram;
GLuint VAO;
std::vector<std::vector<float>> Vertices;
std::vector<std::vector<float>> Normals;
std::vector<std::vector<float>> TextureCoords;
std::vector<Model*> ModelsToRender;
Renderer();
void Draw();
void Initialize();
void Draw(double dt);
void DrawText();
void AddObjectToDraw();
void AddModelToDraw(Model*);
void AddTextToDraw();
void LoadContent();
@@ -45,6 +44,8 @@ public:
private:
GLFWwindow* m_Window;
GLint m_glVersion[2];
GLchar* m_glVendor;
};
#endif // Renderer_h__