From 0cfd2e577ba7ceaa34a9c47603e164d10cb92b2e Mon Sep 17 00:00:00 2001 From: gbrochar Date: Fri, 25 Dec 2020 14:58:48 +0100 Subject: [PATCH] forgot save --- src/run.c | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/src/run.c b/src/run.c index 6bc98cc..87701a1 100644 --- a/src/run.c +++ b/src/run.c @@ -6,7 +6,7 @@ /* By: gbrochar +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/12/23 19:38:05 by gbrochar #+# #+# */ -/* Updated: 2020/12/25 14:54:28 by gbrochar ### ########.fr */ +/* Updated: 2020/12/25 14:58:32 by gbrochar ### ########.fr */ /* */ /* ************************************************************************** */ @@ -69,16 +69,8 @@ static void RenderSceneCB() glDrawElements(GL_TRIANGLES, index_count, GL_UNSIGNED_INT, 0); glDisableVertexAttribArray(0); - - // glutSwapBuffers(); } -// static void InitializeGlutCallbacks(void) -// { -// // glutDisplayFunc(RenderSceneCB); -// // glutIdleFunc(RenderSceneCB); -// } - static void CreateVertexBuffer(t_env *e) { glGenBuffers(1, &VBO); @@ -189,16 +181,6 @@ static void CompileShaders() int run(t_env *e) { - // int argc = 1; - // char *argv[1]; - - // argv[0] = strdup("scop"); - // glutInit(&argc, argv); - // glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA | GLUT_DEPTH); - // glutInitWindowSize(e->window.width, e->window.height); - // glutInitWindowPosition(100, 100); - // glutCreateWindow("scop"); - GLFWwindow* window; /* Initialize the library */ @@ -218,8 +200,6 @@ int run(t_env *e) index_count = e->object.indices.ptr; printf("%ld\n", e->object.indices.ptr); printf("%ld\n", e->object.vertices.ptr); - // InitializeGlutCallbacks(); - // Must be done after glut is initialized ! GLenum res = glewInit(); if (res != GLEW_OK) {