aboutsummaryrefslogtreecommitdiff
path: root/src/glfww.c
diff options
context:
space:
mode:
authoramy <[email protected]>2023-04-18 13:13:00 +0000
committeramy <[email protected]>2023-04-18 13:13:00 +0000
commit11564889bbdde63d445227df4f2dd4e77ae9f9fb (patch)
tree260f29d888d6d8cf5ef96209ec6b8ca9c7308257 /src/glfww.c
parente7331cb0c98260c3bb979e4b58aed4a043e6299f (diff)
shaders wip
Diffstat (limited to 'src/glfww.c')
-rw-r--r--src/glfww.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/glfww.c b/src/glfww.c
index 6060835..91bf7cd 100644
--- a/src/glfww.c
+++ b/src/glfww.c
@@ -1,5 +1,4 @@
#include <stdio.h>
-#include <GLFW/glfw3.h>
#include "util.h"
#include <unistd.h>
#include <stdlib.h>
@@ -18,7 +17,10 @@ GLFWwindow* glfw_init(){
glfwTerminate();
err("failed to create window",pexit);
}
-
+ glEnableClientState(GL_VERTEX_ARRAY);
+ //glEnableClientState(GL_COLOR_ARRAY);
+ //glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
+ //glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
glfwMakeContextCurrent(window);
int w,h;
glfwGetFramebufferSize(window,&w,&h);