aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-05-04 13:55:21 +0200
committerlonkaars <loek@pipeframe.xyz>2024-05-04 13:55:21 +0200
commit85a235cfe75d3145e046ecad662ffb6c4c09e79e (patch)
tree245aa897b483b8d338770f662c328139d8806b67 /main.c
parentc726c808bc06a7ad3711fb7c5e33afad44f258f3 (diff)
hello world
Diffstat (limited to 'main.c')
-rw-r--r--main.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/main.c b/main.c
new file mode 100644
index 0000000..be899de
--- /dev/null
+++ b/main.c
@@ -0,0 +1,13 @@
+#include <GLFW/glfw3.h>
+
+int main(int argc, char** argv) {
+ glfwInit();
+
+ glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
+ glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
+
+ glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
+
+ return 0;
+}
+