aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/pugl_win.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-02-17 21:09:23 +0100
committerDavid Robillard <d@drobilla.net>2019-02-17 21:43:06 +0100
commitee834a83860e614d565f5bb38cdfb8681ffa5f16 (patch)
treef8ef6ce44613f29e28b18698f9477d82e9af344c /pugl/pugl_win.cpp
parent982c89102967169854208608874659a03998dd7e (diff)
downloadpugl-ee834a83860e614d565f5bb38cdfb8681ffa5f16.tar.gz
pugl-ee834a83860e614d565f5bb38cdfb8681ffa5f16.tar.bz2
pugl-ee834a83860e614d565f5bb38cdfb8681ffa5f16.zip
Add puglGetProcAddress for using OpenGL extensions
Diffstat (limited to 'pugl/pugl_win.cpp')
-rw-r--r--pugl/pugl_win.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/pugl/pugl_win.cpp b/pugl/pugl_win.cpp
index 2c092eb..048c0c3 100644
--- a/pugl/pugl_win.cpp
+++ b/pugl/pugl_win.cpp
@@ -631,6 +631,12 @@ wndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
}
}
+PuglGlFunc
+puglGetProcAddress(const char* name)
+{
+ return (PuglGlFunc)wglGetProcAddress(name);
+}
+
void
puglPostRedisplay(PuglView* view)
{