]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - glquake.h
tolerate clients living up to one frame in the future, just to be more flexible with...
[xonotic/darkplaces.git] / glquake.h
index a84dd17dcc00cbd266b5d7d4509c56e136d697a5..ce930c4bb5e33d73a1ba6a28df2876858198f390 100644 (file)
--- a/glquake.h
+++ b/glquake.h
@@ -110,6 +110,7 @@ typedef double GLclampd;
 #define GL_TEXTURE_BORDER_COLOR                        0x1004
 #define GL_TEXTURE_MAG_FILTER                  0x2800
 #define GL_TEXTURE_MIN_FILTER                  0x2801
+#define GL_PACK_ALIGNMENT                      0x0D05
 #define GL_UNPACK_ALIGNMENT                    0x0CF5
 #define GL_TEXTURE_BINDING_1D                   0x8068
 #define GL_TEXTURE_BINDING_2D                   0x8069
@@ -169,8 +170,20 @@ extern int gl_max_anisotropy;
 #define GL_TEXTURE_COORD_ARRAY                 0x8078
 //#define GL_EDGE_FLAG_ARRAY                   0x8079
 
+#define GL_NONE                                        0
+#define GL_FRONT_LEFT                  0x0400
+#define GL_FRONT_RIGHT                 0x0401
+#define GL_BACK_LEFT                   0x0402
+#define GL_BACK_RIGHT                  0x0403
 #define GL_FRONT                               0x0404
 #define GL_BACK                                        0x0405
+#define GL_LEFT                                        0x0406
+#define GL_RIGHT                               0x0407
+#define GL_FRONT_AND_BACK              0x0408
+#define GL_AUX0                                        0x0409
+#define GL_AUX1                                        0x040A
+#define GL_AUX2                                        0x040B
+#define GL_AUX3                                        0x040C
 
 #define GL_VENDOR                              0x1F00
 #define GL_RENDERER                            0x1F01
@@ -226,6 +239,9 @@ extern int gl_max_anisotropy;
 #define GL_POINT_SMOOTH                         0x0B10
 #define GL_LINE_SMOOTH                          0x0B20
 #define GL_POLYGON_SMOOTH                       0x0B41
+
+#define GL_POLYGON_STIPPLE                0x0B42
+
 #endif
 
 extern int gl_max_texture_size;
@@ -377,12 +393,43 @@ extern int gl_support_clamptoedge;
 #define GL_CLAMP_TO_EDGE 0x812F
 #endif
 
+//GL_ATI_separate_stencil
+extern int gl_support_separatestencil;
+#ifndef GL_STENCIL_BACK_FUNC
+#define GL_STENCIL_BACK_FUNC              0x8800
+#define GL_STENCIL_BACK_FAIL              0x8801
+#define GL_STENCIL_BACK_PASS_DEPTH_FAIL   0x8802
+#define GL_STENCIL_BACK_PASS_DEPTH_PASS   0x8803
+#endif
+extern void (GLAPIENTRY *qglStencilOpSeparate)(GLenum, GLenum, GLenum, GLenum);
+extern void (GLAPIENTRY *qglStencilFuncSeparate)(GLenum, GLenum, GLint, GLuint);
+
 //GL_EXT_stencil_two_side
 #define GL_STENCIL_TEST_TWO_SIDE_EXT      0x8910
 #define GL_ACTIVE_STENCIL_FACE_EXT        0x8911
 extern void (GLAPIENTRY *qglActiveStencilFaceEXT)(GLenum);
 extern int gl_support_stenciltwoside;
 
+//GL_EXT_blend_minmax
+extern int gl_support_ext_blend_minmax;
+#ifndef GL_FUNC_ADD_EXT
+#define GL_FUNC_ADD_EXT                   0x8006 // also supplied by GL_EXT_blend_subtract
+#define GL_MIN_EXT                        0x8007
+#define GL_MAX_EXT                        0x8008
+#define GL_BLEND_EQUATION_EXT             0x8009 // also supplied by GL_EXT_blend_subtract
+extern void (GLAPIENTRY *qglBlendEquationEXT)(GLenum); // also supplied by GL_EXT_blend_subtract
+#endif
+
+//GL_EXT_blend_subtract
+extern int gl_support_ext_blend_subtract;
+#ifndef GL_FUNC_SUBTRACT_EXT
+#define GL_FUNC_SUBTRACT_EXT              0x800A
+#define GL_FUNC_REVERSE_SUBTRACT_EXT      0x800B
+#endif
+
+//GL_ARB_texture_non_power_of_two
+extern int gl_support_arb_texture_non_power_of_two;
+
 extern void (GLAPIENTRY *qglScissor)(GLint x, GLint y, GLsizei width, GLsizei height);
 
 extern void (GLAPIENTRY *qglClearColor)(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
@@ -540,6 +587,7 @@ extern void (GLAPIENTRY *qglGetActiveUniformARB)(GLhandleARB programObj, GLuint
 extern void (GLAPIENTRY *qglGetUniformfvARB)(GLhandleARB programObj, GLint location, GLfloat *params);
 extern void (GLAPIENTRY *qglGetUniformivARB)(GLhandleARB programObj, GLint location, GLint *params);
 extern void (GLAPIENTRY *qglGetShaderSourceARB)(GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *source);
+extern void (GLAPIENTRY *qglPolygonStipple)(const GLubyte *mask);
 #ifndef GL_PROGRAM_OBJECT_ARB
 #define GL_PROGRAM_OBJECT_ARB                                  0x8B40
 #define GL_OBJECT_TYPE_ARB                                             0x8B4E
@@ -681,7 +729,7 @@ extern int gl_support_shading_language_100;
 #define DEBUGGL
 
 #ifdef DEBUGGL
-#define CHECKGLERROR {if (gl_printcheckerror.integer) Con_Printf("CHECKGLERROR at %s:%d\n", __FILE__, __LINE__);if (gl_paranoid.integer && (errornumber = qglGetError())) GL_PrintError(errornumber, __FILE__, __LINE__);}
+#define CHECKGLERROR {if (gl_paranoid.integer){if (gl_printcheckerror.integer) Con_Printf("CHECKGLERROR at %s:%d\n", __FILE__, __LINE__);errornumber = qglGetError();if (errornumber) GL_PrintError(errornumber, __FILE__, __LINE__);}}
 extern int errornumber;
 void GL_PrintError(int errornumber, char *filename, int linenumber);
 #else