]> 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 b27cd252d2d4c7f629fdfc4e8a262b119e4a85fd..ce930c4bb5e33d73a1ba6a28df2876858198f390 100644 (file)
--- a/glquake.h
+++ b/glquake.h
@@ -393,12 +393,40 @@ 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;