]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - glquake.h
reorganized view rendering setup code a bit to reduce potential for state bugs (more...
[xonotic/darkplaces.git] / glquake.h
index 32b76f2d5e14aef5bad694053ed06ec1ea975275..ce930c4bb5e33d73a1ba6a28df2876858198f390 100644 (file)
--- a/glquake.h
+++ b/glquake.h
@@ -393,6 +393,17 @@ extern int gl_support_clamptoedge;
 #define GL_CLAMP_TO_EDGE 0x812F
 #endif
 
 #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
 //GL_EXT_stencil_two_side
 #define GL_STENCIL_TEST_TWO_SIDE_EXT      0x8910
 #define GL_ACTIVE_STENCIL_FACE_EXT        0x8911