+ | Portal teleportation

This commit is contained in:
TheRedShip
2025-02-04 22:36:10 +01:00
committed by tomoron
parent 3b3813793f
commit 635cadf527
6 changed files with 67 additions and 16 deletions

View File

@ -26,6 +26,8 @@ struct GPUCamera
int bounce;
};
class Scene;
class Camera
{
public:
@ -34,12 +36,14 @@ class Camera
~Camera(void);
void update(float deltaTime);
void update(Scene *scene, float deltaTime);
void processMouse(float xoffset, float yoffset, bool constrainPitch);
void processKeyboard(bool forward, bool backward, bool left, bool right, bool up, bool down);
void updateCameraVectors();
void portalTeleport(Scene *scene);
glm::vec3 getPosition();
glm::vec2 getDirection();
glm::mat4 getViewMatrix();