Add gl_set_proc_address

This commit is contained in:
gingerBill
2025-02-04 17:06:05 +00:00
parent 0376061a79
commit 06902818bf

View File

@@ -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)
}