mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 10:48:34 +02:00
add renderer window to make a path with timestamps
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user