mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-13 01:21:38 -07:00
Add gl_set_proc_address to both sdl2 and glfw as utility loaders for OpenGL
This commit is contained in:
Vendored
+7
-1
@@ -222,4 +222,10 @@ SetCharModsCallback :: glfw.SetCharModsCallback;
|
||||
SetCursorEnterCallback :: glfw.SetCursorEnterCallback;
|
||||
SetJoystickCallback :: glfw.SetJoystickCallback;
|
||||
|
||||
SetErrorCallback :: glfw.SetErrorCallback;
|
||||
SetErrorCallback :: glfw.SetErrorCallback;
|
||||
|
||||
|
||||
// Used by vendor:OpenGL
|
||||
gl_set_proc_address :: proc(p: rawptr, name: cstring) {
|
||||
(^rawptr)(p)^ = GetProcAddress(name);
|
||||
}
|
||||
Vendored
+7
@@ -304,3 +304,10 @@ foreign lib {
|
||||
GL_SwapWindow :: proc(window: ^Window) ---
|
||||
GL_DeleteContext :: proc(ctx: GLContext) ---
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Used by vendor:OpenGL
|
||||
gl_set_proc_address :: proc(p: rawptr, name: cstring) {
|
||||
(^rawptr)(p)^ = GL_GetProcAddress(name);
|
||||
}
|
||||
Reference in New Issue
Block a user