start changing parsing of arguments to add settings and start a render with no input

This commit is contained in:
2025-02-06 16:31:28 +01:00
parent 635cadf527
commit cb7eb9346c
16 changed files with 395 additions and 148 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/02 19:44:53 by ycontre ### ########.fr */
/* Updated: 2025/02/06 16:30:58 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
@ -14,15 +14,16 @@
int main(int argc, char **argv)
{
Scene scene;
if (argc <= 1 || !scene.parseScene(argv[1]))
return (1);
Arguments args(argc, argv);
if(args.error())
return(1);
Scene scene(args.getSceneName());
if(scene.fail())
return(1);
Window window(&scene, WIDTH, HEIGHT, "RT_GPU", 0);
Shader shader("shaders/vertex.vert", "shaders/frag.frag", "shaders/compute.glsl");
// Shader shader("shaders/vertex.vert", "shaders/frag.frag", "shaders/debug.glsl");
GLint max_gpu_size;
glGetIntegerv(GL_MAX_SHADER_STORAGE_BLOCK_SIZE, &max_gpu_size);