add renderer window to make a path with timestamps

This commit is contained in:
2025-01-23 13:06:22 +01:00
parent 896cd02e45
commit 4b8e9bd5f0
10 changed files with 166 additions and 129 deletions

View File

@ -6,7 +6,7 @@
/* By: ycontre <ycontre@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/13 16:16:24 by TheRed #+# #+# */
/* Updated: 2025/01/18 19:24:04 by ycontre ### ########.fr */
/* Updated: 2025/01/23 00:39:21 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
@ -17,6 +17,7 @@ Window::Window(Scene *scene, int width, int height, const char *title, int sleep
_scene = scene;
_frameCount = 0;
_pixelisation = 0;
_renderer = new Renderer(scene, this);
if (!glfwInit())
{
@ -258,9 +259,12 @@ void Window::imGuiRender()
ImGui::End();
_renderer->renderImgui();;
ImGui::Render();
ImGui_ImplOpenGL3_RenderDrawData(ImGui::GetDrawData());
if (has_changed)
_frameCount = (accumulate == 0) - 1;
}
@ -280,6 +284,11 @@ int Window::getFrameCount(void) const
return (_frameCount);
}
void Window::setFrameCount(int nb)
{
_frameCount = nb;
}
bool &Window::getAccumulate(void)
{
return (accumulate);