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_gl_backend.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'pugl/pugl_gl_backend.h') 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