Files
RT_GPU/srcs/RT.cpp
2024-10-13 20:59:24 +02:00

36 lines
1.2 KiB
C++

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* RT.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ycontre <ycontre@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/09/27 14:51:49 by TheRed #+# #+# */
/* Updated: 2024/10/13 20:58:06 by ycontre ### ########.fr */
/* */
/* ************************************************************************** */
#include "RT.hpp"
int main(void)
{
Window window;
Shader shader("shaders/vertex.glsl", "shaders/frag.glsl");
shader.attach();
while (!window.shouldClose())
{
glClear(GL_COLOR_BUFFER_BIT);
glUseProgram(shader.getProgram());
window.display();
window.pollEvents();
}
return (0);
}