diff options
Diffstat (limited to 'pygame/pgopengl.h')
-rwxr-xr-x | pygame/pgopengl.h | 16 |
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
|