More viewport stuff
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user