server now sends jobs to client and client can send result image to server

This commit is contained in:
2025-02-25 01:53:08 +01:00
parent fcc6f8266b
commit 29f00cf9b2
13 changed files with 182 additions and 91 deletions

View File

@ -6,7 +6,7 @@
/* By: ycontre <ycontre@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/09/27 14:51:49 by TheRed #+# #+# */
/* Updated: 2025/02/22 22:09:46 by tomoron ### ########.fr */
/* Updated: 2025/02/25 01:51:27 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
@ -28,10 +28,6 @@ int main(int argc, char **argv)
if (args.error())
return (1);
Clusterizer clusterizer(args);
if (clusterizer.getError())
return(1);
Scene scene(args.getSceneName());
if (scene.fail())
return (1);
@ -71,7 +67,7 @@ int main(int argc, char **argv)
while (!window.shouldClose())
{
clusterizer.update();
window.clusterizerUpdate(textures, denoising_program);
window.updateDeltaTime();
updateDataOnGPU(scene, buffers);
@ -103,7 +99,7 @@ int main(int argc, char **argv)
render_program.use();
drawScreenTriangle(VAO, textures[0], render_program.getProgram());
window.imGuiRender(raytracing_program, clusterizer);
window.imGuiRender(raytracing_program);
window.display();
window.pollEvents();