mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-13 09:22:22 -07:00
Add gl_set_proc_address
This commit is contained in:
Vendored
+6
@@ -455,4 +455,10 @@ foreign lib {
|
||||
GL_GetSwapInterval :: proc(interval: ^c.int) -> bool ---
|
||||
GL_SwapWindow :: proc(window: ^Window) -> bool ---
|
||||
GL_DestroyContext :: proc(ctx: GLContext) -> bool ---
|
||||
}
|
||||
|
||||
|
||||
// Used by vendor:OpenGL
|
||||
gl_set_proc_address :: proc(p: rawptr, name: cstring) {
|
||||
(^FunctionPointer)(p)^ = GL_GetProcAddress(name)
|
||||
}
|
||||
Reference in New Issue
Block a user