summaryrefslogtreecommitdiff
path: root/procyon/source/gfx
diff options
context:
space:
mode:
Diffstat (limited to 'procyon/source/gfx')
-rw-r--r--procyon/source/gfx/initgfx.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/procyon/source/gfx/initgfx.c b/procyon/source/gfx/initgfx.c
deleted file mode 100644
index d60e393..0000000
--- a/procyon/source/gfx/initgfx.c
+++ /dev/null
@@ -1,22 +0,0 @@
-#include <acm/gfx.h>
-
-#include <GLFW/glfw3.h>
-
-void acm_initgfx(void) {
- acm_log("Initialising graphics\n");
- if (!glfwInit()) {
- fprintf(stderr,"Unable to initialise GLFW\n");
- acm_exit(acm_stat_err);
- }
- GLFWwindow * win = glfwCreateWindow(0x300,0x200,"Procyon",nullptr,nullptr);
- if (win == nullptr) {
- fprintf(stderr,"Unable to open window\n");
- goto abrt;
- }
- glfwMakeContextCurrent(win);
- acm_dat.win = win;
- return;
-abrt:;
- glfwTerminate();
- acm_exit(acm_stat_err);
-}