mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 18:48:36 +02:00
rendrerer : add a test split button to see if a part of path is good
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
/* By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/01/22 16:29:26 by tomoron #+# #+# */
|
||||
/* Updated: 2025/01/22 19:34:22 by tomoron ### ########.fr */
|
||||
/* Updated: 2025/01/23 19:41:40 by tomoron ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -30,9 +30,11 @@ class Renderer
|
||||
public:
|
||||
Renderer(Scene *scene, Window *win);
|
||||
void renderImgui(void);
|
||||
void update(void);
|
||||
|
||||
private:
|
||||
void addPoint(void);
|
||||
void makeMovement(float timeFromStart, float curSplitTimeReset);
|
||||
|
||||
int _min;
|
||||
float _sec;
|
||||
@ -40,6 +42,11 @@ class Renderer
|
||||
std::vector<t_pathPoint> _path;
|
||||
Scene *_scene;
|
||||
Window *_win;
|
||||
|
||||
int _curPathIndex;
|
||||
int _destPathIndex;
|
||||
double _curSplitStart;
|
||||
int _curSamples;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -6,7 +6,7 @@
|
||||
/* By: ycontre <ycontre@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/10/13 16:15:41 by TheRed #+# #+# */
|
||||
/* Updated: 2025/01/23 00:39:11 by tomoron ### ########.fr */
|
||||
/* Updated: 2025/01/23 15:31:28 by tomoron ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -46,6 +46,7 @@ class Window
|
||||
|
||||
void setFrameCount(int nb);
|
||||
|
||||
void rendererUpdate(void);
|
||||
private:
|
||||
GLFWwindow *_window;
|
||||
Scene *_scene;
|
||||
|
Reference in New Issue
Block a user