mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 08:08:50 +00: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);
|
||||
}
|
||||
Reference in New Issue
Block a user