mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-07 21:43:15 +00:00
Add gl_set_proc_address
This commit is contained in:
6
vendor/sdl3/sdl3_video.odin
vendored
6
vendor/sdl3/sdl3_video.odin
vendored
@@ -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