diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/mgl/gl.h | 5 | ||||
-rw-r--r-- | include/mgl/window.h | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/include/mgl/gl.h b/include/mgl/gl.h index e715ec2..7d9900c 100644 --- a/include/mgl/gl.h +++ b/include/mgl/gl.h @@ -39,6 +39,11 @@ #define GL_LUMINANCE8_ALPHA8 0x8045 #define GL_RGB8 0x8051 #define GL_RGBA8 0x8058 +#define GL_COMPRESSED_RGB_S3TC_DXT1_EXT 0x83F0 +#define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT 0x83F1 +#define GL_COMPRESSED_RGBA_S3TC_DXT3_EXT 0x83F2 +#define GL_COMPRESSED_RGBA_S3TC_DXT5_EXT 0x83F3 + #define GL_CLAMP_TO_EDGE 0x812F #define GL_LINEAR 0x2601 diff --git a/include/mgl/window.h b/include/mgl/window.h index 7db4ecb..1cee698 100644 --- a/include/mgl/window.h +++ b/include/mgl/window.h @@ -4,17 +4,17 @@ typedef struct mgl_window mgl_window; typedef struct { + void *userdata; void (*draw)(mgl_window *window, void *userdata); } mgl_window_callback; struct mgl_window { unsigned long window; mgl_window_callback callback; - void *callback_userdata; }; -int mgl_window_create(mgl_window *self, const char *title, int width, int height, mgl_window_callback *callback, void *userdata); -int mgl_window_create_with_params(mgl_window *self, const char *title, int width, int height, unsigned long parent_window, mgl_window_callback *callback, void *userdata); +int mgl_window_create(mgl_window *self, const char *title, int width, int height, mgl_window_callback *callback); +int mgl_window_create_with_params(mgl_window *self, const char *title, int width, int height, unsigned long parent_window, mgl_window_callback *callback); void mgl_window_deinit(mgl_window *self); void mgl_window_events_poll(mgl_window *self); |