made a lot of changes, to get the render pipeline working
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "Camera.hpp"
|
||||
#include "elements/Transformable.hpp"
|
||||
#include "interfaces/IRenderer.hpp"
|
||||
#include "uuid.h"
|
||||
|
||||
TSE::Camera* TSE::Camera::mainCamera = nullptr;
|
||||
TSE::ICameraHelper* TSE::Camera::helper = nullptr;
|
||||
@@ -30,6 +31,11 @@ float TSE::Camera::GetFov() const
|
||||
return fov;
|
||||
}
|
||||
|
||||
const TSE::Vector2 &TSE::Camera::GetRenderTargetSize() const
|
||||
{
|
||||
return lastRtSize;
|
||||
}
|
||||
|
||||
TSE::Vector3 TSE::Camera::SceenPositionToGamePosition(Vector2 screenPos)
|
||||
{
|
||||
float x = 2.0f * screenPos.x / lastRtSize.x -1.0f;
|
||||
|
||||
Reference in New Issue
Block a user