diff options
-rw-r--r-- | pugl/pugl.h | 11 | ||||
-rw-r--r-- | pugl/pugl_gl_backend.h | 11 |
2 files changed, 11 insertions, 11 deletions
diff --git a/pugl/pugl.h b/pugl/pugl.h index 2637734..868ebd5 100644 --- a/pugl/pugl.h +++ b/pugl/pugl.h @@ -715,11 +715,6 @@ puglGetNativeWindow(PuglView* view); typedef struct PuglBackendImpl PuglBackend; /** - OpenGL extension function. -*/ -typedef void (*PuglGlFunc)(void); - -/** Set the graphics backend to use. This needs to be called once before creating the window to set the graphics @@ -731,12 +726,6 @@ PUGL_API PuglStatus puglSetBackend(PuglView* view, const PuglBackend* backend); /** - Return the address of an OpenGL extension function. -*/ -PUGL_API PuglGlFunc -puglGetProcAddress(const char* name); - -/** Get the drawing context. The context is only guaranteed to be available during an expose. 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. |