Renderer refactoring. WIP InputSystem.

This commit is contained in:
2014-03-07 02:28:19 +01:00
parent e65db077d5
commit b1f0bc7cce
8 changed files with 39 additions and 59 deletions
+21 -5
View File
@@ -1,3 +1,6 @@
#ifndef Renderer_h__
#define Renderer_h__
#include <string>
#include <fstream>
#include <iostream>
@@ -16,19 +19,32 @@
#include <glm/gtc/type_ptr.hpp>
#include "glerror.h"
#include "ShaderProgram.h"
class Renderer
{
public:
GLuint shaderProgram;
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;
Renderer();
void Draw();
void DrawText();
GLuint CompileShader(GLenum, std::string);
void AddObjectToDraw();
void AddTextToDraw();
};
void LoadContent();
GLFWwindow* GetWindow() const { return m_Window; }
private:
GLFWwindow* m_Window;
};
#endif // Renderer_h__