add to render path automatically when going through a portal and fix images on tp path nodes

This commit is contained in:
2025-02-17 23:51:49 +01:00
parent d10f7a5bc1
commit 62852a51dc
5 changed files with 66 additions and 23 deletions

View File

@ -6,7 +6,7 @@
/* By: ycontre <ycontre@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/15 13:59:57 by TheRed #+# #+# */
/* Updated: 2025/02/05 19:05:45 by ycontre ### ########.fr */
/* Updated: 2025/02/17 22:47:47 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
@ -27,6 +27,7 @@ struct GPUCamera
};
class Scene;
class Renderer;
class Camera
{
@ -36,14 +37,14 @@ class Camera
~Camera(void);
void update(Scene *scene, float deltaTime);
void update(Scene *scene, float deltaTime, Renderer &renderer);
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 updateCameraDirections();
int portalTeleport(Scene *scene, float delta_time);
int portalTeleport(Scene *scene, float delta_time, Renderer &renderer);
glm::vec3 getPosition();
glm::vec2 getDirection();
@ -89,4 +90,4 @@ class Camera
int _bounce = 5;
};
#endif
#endif