Add gl_set_proc_address
This commit is contained in:
1 parent
0376061a79
commit
06902818bf
1 file changed
+6
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