aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorhikari <ftphikari@gmail.com>2022-12-05 23:58:31 +0200
committerhikari <ftphikari@gmail.com>2022-12-05 23:58:31 +0200
commitd0e4edfb43a1f5bebf705c4efc2c6883360ca66e (patch)
tree1c85063bdfcb630e3b96ed3c51b50baabdc2439e /core
parent9c8eaeb9882fc633eef9e86a88fc32502aef2f0d (diff)
sys/windows: added helper gl proc
Diffstat (limited to 'core')
-rw-r--r--core/sys/windows/wgl.odin5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/sys/windows/wgl.odin b/core/sys/windows/wgl.odin
index 150358d01..e91463a3c 100644
--- a/core/sys/windows/wgl.odin
+++ b/core/sys/windows/wgl.odin
@@ -85,3 +85,8 @@ foreign Opengl32 {
wglUseFontBitmaps :: proc(hdc: HDC, first, count, list_base: DWORD) -> BOOL ---
wglUseFontOutlines :: proc(hdc: HDC, first, count, list_base: DWORD, deviation, extrusion: f32, format: c.int, gmf: LPGLYPHMETRICSFLOAT) -> BOOL ---
}
+
+// Used by vendor:OpenGL
+gl_set_proc_address :: proc(p: rawptr, name: cstring) {
+ (^rawptr)(p)^ = wglGetProcAddress(name)
+}