From c3efbc6e434168c7f797d787f56c7f7d5fdbdb6f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 18 Nov 2019 19:37:12 +0100 Subject: Move puglGetProcAddress to pugl_gl_backend.h This establishes a general pattern for backend-specific APIs, so that pugl.h doesn't become a mess. The name of these headers, and the definition of "backend", is a little fuzzy here, but it was before in reality anyway. --- pugl/pugl.h | 11 ----------- 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 @@ -714,11 +714,6 @@ puglGetNativeWindow(PuglView* view); */ typedef struct PuglBackendImpl PuglBackend; -/** - OpenGL extension function. -*/ -typedef void (*PuglGlFunc)(void); - /** Set the graphics backend to use. @@ -730,12 +725,6 @@ typedef void (*PuglGlFunc)(void); 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. 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 @@ -27,6 +27,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. -- cgit v1.2.1