forked from Dynamitos/Seele
Viewport controls
This commit is contained in:
1 parent
f635ee2100
commit
4ba0bf3b45
73 files changed
+627
-449
No files matched your search
@@ -22,6 +22,11 @@ void System::update()
|
||||
|
||||
}
|
||||
|
||||
void System::updateViewport(Gfx::PViewport viewport)
|
||||
{
|
||||
virtualCamera.projectionMatrix = glm::ortho<float>(0.0f, static_cast<float>(viewport->getSizeX()), 0.0f, static_cast<float>(viewport->getSizeY()));
|
||||
}
|
||||
|
||||
UIPassData System::getUIPassData()
|
||||
{
|
||||
UIPassData uiPassData;
|
||||
@@ -46,3 +51,8 @@ TextPassData System::getTextPassData()
|
||||
render.textColor = Math::Vector4(1, 0, 0, 1);
|
||||
return textPassData;
|
||||
}
|
||||
|
||||
Component::Camera System::getVirtualCamera() const
|
||||
{
|
||||
return virtualCamera;
|
||||
}
|
||||
Reference in new issue
Block a user