summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/swrast.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2002-10-02 23:24:04 +0000
committerBrian Paul <[email protected]>2002-10-02 23:24:04 +0000
commitbe99e845bd7979fe46d38d9b294c1ba0a0aa95b8 (patch)
tree894e2807945dacf81c906a749a17534e62825489 /src/mesa/swrast/swrast.h
parent0adce5d0ed20910a41c2115e4dd0173fdcc53cdb (diff)
finished up GL_EXT_stencil_two_side
Diffstat (limited to 'src/mesa/swrast/swrast.h')
-rw-r--r--src/mesa/swrast/swrast.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/swrast/swrast.h b/src/mesa/swrast/swrast.h
index 4db055b6fe1..2d547c889ea 100644
--- a/src/mesa/swrast/swrast.h
+++ b/src/mesa/swrast/swrast.h
@@ -1,4 +1,4 @@
-/* $Id: swrast.h,v 1.27 2002/09/17 15:46:36 brianp Exp $ */
+/* $Id: swrast.h,v 1.28 2002/10/02 23:24:04 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -147,6 +147,9 @@ struct sw_span {
/** either GL_POLYGON, GL_LINE, GL_POLYGON, GL_BITMAP */
GLenum primitive;
+ /** 0 = front-facing span, 1 = back-facing span (for two-sided stencil) */
+ GLuint facing;
+
/**
* This bitmask (of SPAN_* flags) indicates which of the x/xStep
* variables are relevant.
@@ -201,6 +204,7 @@ do { \
(S).arrayMask = (ARRAY_MASK); \
(S).start = 0; \
(S).end = (END); \
+ (S).facing = 0; \
(S).array = SWRAST_CONTEXT(ctx)->span_data; \
} while (0)