From 2276dc7ad067f7af7504783239103c1abd7b4433 Mon Sep 17 00:00:00 2001 From: Vlad-Stefan Harbuz Date: Mon, 7 Feb 2022 13:08:52 +0100 Subject: refactor names from e.g. sdl2::init() to sdl2::SDL_Init() Signed-off-by: Vlad-Stefan Harbuz --- sdl2/gl.ha | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'sdl2/gl.ha') 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; -- cgit v1.2.3