diff options
| author | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2010-08-18 01:34:01 +0000 |
|---|---|---|
| committer | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2010-08-18 01:34:01 +0000 |
| commit | c4f5208806fe4136b19cce9f63f03820fc49d0cf (patch) | |
| tree | c1f42770d9fc0f88538993f0fb4cc78c364c056e /plugins/peopsxgl/gl_ext.h | |
| parent | c4a77870fcb7793bd5a7611b9994a5b15a335a3c (diff) | |
| download | pcsxr-c4f5208806fe4136b19cce9f63f03820fc49d0cf.tar.gz | |
peopsxgl: Readded windows support.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@56180 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins/peopsxgl/gl_ext.h')
| -rw-r--r-- | plugins/peopsxgl/gl_ext.h | 47 |
1 files changed, 33 insertions, 14 deletions
diff --git a/plugins/peopsxgl/gl_ext.h b/plugins/peopsxgl/gl_ext.h index be0db439..bbdf5f3a 100644 --- a/plugins/peopsxgl/gl_ext.h +++ b/plugins/peopsxgl/gl_ext.h @@ -1,4 +1,4 @@ -#define COMBINE_EXT 0x8570 +#define COMBINE_EXT 0x8570
#define COMBINE_RGB_EXT 0x8571
#define COMBINE_ALPHA_EXT 0x8572
#define SOURCE0_RGB_EXT 0x8580
@@ -22,16 +22,35 @@ #define FUNC_ADD_EXT 0x8006
#define FUNC_REVERSESUBTRACT_EXT 0x800B
- -typedef void (* PFNGLBLENDEQU) (GLenum mode); -typedef void (* PFNGLCOLORTABLEEXT) - (GLenum target, GLenum internalFormat, GLsizei width, GLenum format, - GLenum type, const GLvoid *data); - -#define GL_UNSIGNED_SHORT_4_4_4_4_EXT 0x8033 -#define GL_UNSIGNED_SHORT_5_5_5_1_EXT 0x8034 - -#define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF -#define GL_TEXTURE_MAX_ANISOTROPY_EXT 0x84FE - -//GL_ALPHA_SCALE +
+#ifdef _WINDOWS
+typedef void (APIENTRY * PFNGLBLENDEQU) (GLenum mode);
+typedef void (APIENTRY * PFNGLCOLORTABLEEXT)
+ (GLenum target, GLenum internalFormat, GLsizei width, GLenum format,
+ GLenum type, const GLvoid *data);
+typedef BOOL (APIENTRY *PFNWGLSWAPINTERVALFARPROC)(int iV);
+#else
+typedef void (* PFNGLBLENDEQU) (GLenum mode);
+typedef void (* PFNGLCOLORTABLEEXT)
+ (GLenum target, GLenum internalFormat, GLsizei width, GLenum format,
+ GLenum type, const GLvoid *data);
+#endif
+
+#define GL_UNSIGNED_SHORT_4_4_4_4_EXT 0x8033
+#define GL_UNSIGNED_SHORT_5_5_5_1_EXT 0x8034
+
+#define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF
+#define GL_TEXTURE_MAX_ANISOTROPY_EXT 0x84FE
+
+#ifndef GL_BGR_EXT
+#define GL_BGR_EXT 0x80E0
+#endif
+#ifndef GL_BGRA_EXT
+#define GL_BGRA_EXT 0x80E1
+#endif
+
+#ifndef GL_COLOR_INDEX8_EXT
+#define GL_COLOR_INDEX8_EXT 0x80E5
+#endif
+
+//GL_ALPHA_SCALE
|
