forgot save

This commit is contained in:
gbrochar 2020-12-25 14:58:48 +01:00
parent 0d8fd653a5
commit 0cfd2e577b
1 changed files with 1 additions and 21 deletions

View File

@ -6,7 +6,7 @@
/* By: gbrochar <gbrochar@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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)
{