mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Add gl_set_proc_address to both sdl2 and glfw as utility loaders for OpenGL
This commit is contained in:
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