28 #include "ascension/window.h" |
28 #include "ascension/window.h" |
29 #include "ascension/context.h" |
29 #include "ascension/context.h" |
30 #include "ascension/error.h" |
30 #include "ascension/error.h" |
31 #include "ascension/utils.h" |
31 #include "ascension/utils.h" |
32 |
32 |
33 #include <cx/linked_list.h> |
|
34 #include <cx/printf.h> |
33 #include <cx/printf.h> |
35 |
34 |
36 #include <GL/glew.h> |
35 #include <GL/glew.h> |
37 |
36 |
38 static void asc_gl_debug_callback( |
37 static void asc_gl_debug_callback( |
105 settings->depth_size = 24; |
104 settings->depth_size = 24; |
106 settings->vsync = 1; |
105 settings->vsync = 1; |
107 settings->dimensions.width = 800; |
106 settings->dimensions.width = 800; |
108 settings->dimensions.height = 600; |
107 settings->dimensions.height = 600; |
109 settings->fullscreen = 0; |
108 settings->fullscreen = 0; |
110 settings->gl_major_version = 3; |
109 settings->gl_major_version = 4; |
111 settings->gl_minor_version = 3; |
110 settings->gl_minor_version = 0; |
112 settings->title = "Ascended Window"; |
111 settings->title = "Ascended Window"; |
113 } |
112 } |
114 |
113 |
115 AscWindow *asc_window_initialize(unsigned int index, AscWindowSettings const *settings) { |
114 AscWindow *asc_window_initialize(unsigned int index, AscWindowSettings const *settings) { |
116 if (index >= ASC_MAX_WINDOWS) { |
115 if (index >= ASC_MAX_WINDOWS) { |