Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pygame/pgopengl.h
diff options
context:
space:
mode:
Diffstat (limited to 'pygame/pgopengl.h')
-rwxr-xr-xpygame/pgopengl.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/pygame/pgopengl.h b/pygame/pgopengl.h
new file mode 100755
index 0000000..7f9fd95
--- /dev/null
+++ b/pygame/pgopengl.h
@@ -0,0 +1,16 @@
+#if !defined(PGOPENGL_H)
+#define PGOPENGL_H
+
+/** This header includes definitions of Opengl functions as pointer types for
+ ** use with the SDL function SDL_GL_GetProcAddress.
+ **/
+
+#if defined(_WIN32)
+#define GL_APIENTRY __stdcall
+#else
+#define GL_APIENTRY
+#endif
+
+typedef void (GL_APIENTRY *GL_glReadPixels_Func)(int, int, int, int, unsigned int, unsigned int, void*);
+
+#endif