More viewport stuff

This commit is contained in:
2014-05-19 04:29:30 +02:00
parent 3023391358
commit e07a0a2b1a
4 changed files with 28 additions and 5 deletions
+11
View File
@@ -35,6 +35,7 @@ public:
void Draw(double dt);
void DrawText();
void CreateViewport(int identifier, float left, float top, float right, float bottom);
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();
@@ -67,6 +68,16 @@ public:
private:
int m_Width, m_Height;
struct Viewport
{
float Left;
float Top;
float Right;
float Bottom;
};
std::unordered_map<int, Viewport> m_Viewports;
struct Light
{
glm::vec3 Position;