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
@@ -868,5 +868,16 @@ void Renderer::UpdateSunProjection()
//Pass the bounding box's extents to glOrtho or similar to set up the orthographic projection matrix for the shadow map.
}
void Renderer::CreateViewport(int identifier, float left, float top, float right, float bottom)
{
Viewport v;
v.Left = left;
v.Top = top;
v.Right = right;
v.Bottom = bottom;
m_Viewports[identifier] = v;
}