]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - glquake.h
make DP compile with C++ again
[xonotic/darkplaces.git] / glquake.h
index 93f67e982e35e4ff1b1d09a7ae122c5f99e27b31..5acbc4469a6e02126c2f9918ff75793c211d006a 100644 (file)
--- a/glquake.h
+++ b/glquake.h
@@ -42,6 +42,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #endif
 
 #ifndef GL_PROJECTION
+#include <stddef.h>
+
 typedef unsigned int GLenum;
 typedef unsigned char GLboolean;
 typedef unsigned int GLbitfield;
@@ -69,9 +71,9 @@ typedef double GLdouble;
 // double precision float in [0,1]
 typedef double GLclampd;
 // int whose size is the same as a pointer (?)
-typedef size_t GLintptrARB;
+typedef ptrdiff_t GLintptrARB;
 // int whose size is the same as a pointer (?)
-typedef size_t GLsizeiptrARB;
+typedef ptrdiff_t GLsizeiptrARB;
 
 #define GL_MODELVIEW                           0x1700
 #define GL_PROJECTION                          0x1701
@@ -250,6 +252,13 @@ extern int gl_max_anisotropy;
 
 #define GL_POLYGON_STIPPLE                0x0B42
 
+#define GL_CLIP_PLANE0                    0x3000
+#define GL_CLIP_PLANE1                    0x3001
+#define GL_CLIP_PLANE2                    0x3002
+#define GL_CLIP_PLANE3                    0x3003
+#define GL_CLIP_PLANE4                    0x3004
+#define GL_CLIP_PLANE5                    0x3005
+
 #endif
 
 extern int gl_max_texture_size;
@@ -589,6 +598,9 @@ extern void (GLAPIENTRY *qglCopyTexSubImage2D)(GLenum target, GLint level, GLint
 extern void (GLAPIENTRY *qglPolygonOffset)(GLfloat factor, GLfloat units);
 extern void (GLAPIENTRY *qglPolygonMode)(GLenum face, GLenum mode);
 
+extern void (GLAPIENTRY *qglClipPlane)(GLenum plane, const GLdouble *equation);
+extern void (GLAPIENTRY *qglGetClipPlane)(GLenum plane, GLdouble *equation);
+
 //[515]: added on 29.07.2005
 extern void (GLAPIENTRY *qglLineWidth)(GLfloat width);
 extern void (GLAPIENTRY *qglPointSize)(GLfloat size);
@@ -599,7 +611,7 @@ extern int gl_support_shader_objects;
 // 1-byte character string
 typedef char GLcharARB;
 // 4-byte integer handle to a shader object or program object
-typedef int GLhandleARB;
+typedef unsigned int GLhandleARB;
 #endif
 extern void (GLAPIENTRY *qglDeleteObjectARB)(GLhandleARB obj);
 extern GLhandleARB (GLAPIENTRY *qglGetHandleARB)(GLenum pname);