aboutsummaryrefslogtreecommitdiff
path: root/sdl2/gl.ha
diff options
context:
space:
mode:
authorVlad-Stefan Harbuz <vlad@vladh.net>2022-02-07 13:08:52 +0100
committerDrew DeVault <sir@cmpwn.com>2022-02-07 18:56:08 +0100
commit2276dc7ad067f7af7504783239103c1abd7b4433 (patch)
tree20f2f98f4af8b2ff0efeb3b15f1a26e09702e908 /sdl2/gl.ha
parentcorrect indentation (diff)
downloadhare-chip8-2276dc7ad067f7af7504783239103c1abd7b4433.tar.gz
refactor names from e.g. sdl2::init() to sdl2::SDL_Init()
Signed-off-by: Vlad-Stefan Harbuz <vlad@vladh.net>
Diffstat (limited to 'sdl2/gl.ha')
-rw-r--r--sdl2/gl.ha18
1 files changed, 9 insertions, 9 deletions
diff --git a/sdl2/gl.ha b/sdl2/gl.ha
index 3edffa7..023a62f 100644
--- a/sdl2/gl.ha
+++ b/sdl2/gl.ha
@@ -1,12 +1,12 @@
-export type glcontext = void;
+export type SDL_GLContext = void;
-export type glprofile = enum int {
+export type SDL_GLprofile = enum int {
GL_CONTEXT_PROFILE_CORE = 0x0001,
GL_CONTEXT_PROFILE_COMPATIBILITY = 0x0002,
GL_CONTEXT_PROFILE_ES = 0x0004,
};
-export type glattr = enum {
+export type SDL_GLattr = enum {
GL_RED_SIZE,
GL_GREEN_SIZE,
GL_BLUE_SIZE,
@@ -36,10 +36,10 @@ export type glattr = enum {
GL_CONTEXT_NO_ERROR,
};
-export @symbol("SDL_GL_CreateContext") fn gl_create_context(
- window: *window) *glcontext;
-export @symbol("SDL_GL_GetProcAddress") fn gl_get_proc_address(
+export @symbol("SDL_GL_CreateContext") fn SDL_GL_CreateContext(
+ window: *SDL_Window) *SDL_GLContext;
+export @symbol("SDL_GL_GetProcAddress") fn SDL_GL_GetProcAddress(
proc: *const char) *void;
-export @symbol("SDL_GL_SetAttribute") fn gl_set_attribute(
- attr: glattr, value: int) *void;
-export @symbol("SDL_GL_SwapWindow") fn gl_swap_window(window: *window) void;
+export @symbol("SDL_GL_SetAttribute") fn SDL_GL_SetAttribute(
+ attr: SDL_GLattr, value: int) *void;
+export @symbol("SDL_GL_SwapWindow") fn SDL_GL_SwapWindow(window: *SDL_Window) void;