rendrerer : add a test split button to see if a part of path is good

This commit is contained in:
2025-01-23 19:47:41 +01:00
parent 4b8e9bd5f0
commit 7b1be7c2d9
8 changed files with 94 additions and 20 deletions

View File

@ -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