forked from Dynamitos/Seele
Not even with long texts and small scales
This commit is contained in:
1 parent
03e1a5784d
commit
796271f334
17 files changed
+127
-105
No files matched your search
@@ -53,6 +53,14 @@ void CameraComponent::moveY(float amount)
|
||||
bNeedsViewBuild = true;
|
||||
}
|
||||
|
||||
void CameraComponent::setViewport(Gfx::PViewport newViewport)
|
||||
{
|
||||
viewport = newViewport;
|
||||
aspectRatio = viewport->getSizeX() / (float)viewport->getSizeY();
|
||||
|
||||
bNeedsProjectionBuild = true;
|
||||
}
|
||||
|
||||
void CameraComponent::buildViewMatrix()
|
||||
{
|
||||
Vector eyePos = getAbsoluteTransform().getPosition();
|
||||
|
||||
Reference in new issue
Block a user