aboutsummaryrefslogtreecommitdiff
path: root/pugl/include/pugl/gl.h
diff options
context:
space:
mode:
Diffstat (limited to 'pugl/include/pugl/gl.h')
-rw-r--r--pugl/include/pugl/gl.h44
1 files changed, 24 insertions, 20 deletions
diff --git a/pugl/include/pugl/gl.h b/pugl/include/pugl/gl.h
index eb86c3d..51c4a7d 100644
--- a/pugl/include/pugl/gl.h
+++ b/pugl/include/pugl/gl.h
@@ -25,25 +25,25 @@
enable pure portable programs. */
#ifndef PUGL_NO_INCLUDE_GL_H
-# ifdef __APPLE__
-# include "OpenGL/gl.h"
-# else
-# ifdef _WIN32
-# include <windows.h>
-# endif
-# include "GL/gl.h"
-# endif
+# ifdef __APPLE__
+# include <OpenGL/gl.h>
+# else
+# ifdef _WIN32
+# include <windows.h>
+# endif
+# include <GL/gl.h>
+# endif
#endif
#ifndef PUGL_NO_INCLUDE_GLU_H
-# ifdef __APPLE__
-# include "OpenGL/glu.h"
-# else
-# ifdef _WIN32
-# include <windows.h>
-# endif
-# include "GL/glu.h"
-# endif
+# ifdef __APPLE__
+# include <OpenGL/glu.h>
+# else
+# ifdef _WIN32
+# include <windows.h>
+# endif
+# include <GL/glu.h>
+# endif
#endif
// IWYU pragma: end_exports
@@ -65,7 +65,8 @@ typedef void (*PuglGlFunc)(void);
/**
Return the address of an OpenGL extension function.
*/
-PUGL_API PuglGlFunc
+PUGL_API
+PuglGlFunc
puglGetProcAddress(const char* name);
/**
@@ -75,7 +76,8 @@ puglGetProcAddress(const char* name);
doing things like loading textures. Note that this must not be used for
drawing, which may only be done while processing an expose event.
*/
-PUGL_API PuglStatus
+PUGL_API
+PuglStatus
puglEnterContext(PuglView* view);
/**
@@ -83,7 +85,8 @@ puglEnterContext(PuglView* view);
This must only be called after puglEnterContext().
*/
-PUGL_API PuglStatus
+PUGL_API
+PuglStatus
puglLeaveContext(PuglView* view);
/**
@@ -91,7 +94,8 @@ puglLeaveContext(PuglView* view);
Pass the returned value to puglSetBackend() to draw to a view with OpenGL.
*/
-PUGL_API PUGL_CONST_FUNC const PuglBackend*
+PUGL_CONST_API
+const PuglBackend*
puglGlBackend(void);
PUGL_END_DECLS