aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/pugl_gl_backend.h
diff options
context:
space:
mode:
Diffstat (limited to 'pugl/pugl_gl_backend.h')
-rw-r--r--pugl/pugl_gl_backend.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/pugl/pugl_gl_backend.h b/pugl/pugl_gl_backend.h
index 5913b95..59e76d1 100644
--- a/pugl/pugl_gl_backend.h
+++ b/pugl/pugl_gl_backend.h
@@ -28,6 +28,17 @@ extern "C" {
#endif
/**
+ OpenGL extension function.
+*/
+typedef void (*PuglGlFunc)(void);
+
+/**
+ Return the address of an OpenGL extension function.
+*/
+PUGL_API PuglGlFunc
+puglGetProcAddress(const char* name);
+
+/**
OpenGL graphics backend.
Pass the return value to puglInitBackend() to draw to a view with OpenGL.