diff options
author | Brian Paul <[email protected]> | 2001-09-13 22:12:54 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2001-09-13 22:12:54 +0000 |
commit | dcbe4d6d2f3eb2c099838875780991da34884646 (patch) | |
tree | d1c074b2d7e458f3459c96ce2a6385ad20e8e27c /src/mesa/swrast/s_trispan.h | |
parent | d22554d2cec07d6a8c11d5aef07835aef8d9a030 (diff) |
minor optimizations for flat shading (Klaus Niederkrueger)
Diffstat (limited to 'src/mesa/swrast/s_trispan.h')
-rw-r--r-- | src/mesa/swrast/s_trispan.h | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/src/mesa/swrast/s_trispan.h b/src/mesa/swrast/s_trispan.h index 2ac3c4d17a8..48f397e4c51 100644 --- a/src/mesa/swrast/s_trispan.h +++ b/src/mesa/swrast/s_trispan.h @@ -1,4 +1,4 @@ -/* $Id: s_trispan.h,v 1.2 2001/07/14 17:53:04 brianp Exp $ */ +/* $Id: s_trispan.h,v 1.3 2001/09/13 22:12:54 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -44,14 +44,18 @@ */ -#define SPAN_RGBA 0x01 -#define SPAN_SPEC 0x02 -#define SPAN_INDEX 0x04 -#define SPAN_Z 0x08 -#define SPAN_FOG 0x10 -#define SPAN_TEXTURE 0x20 -#define SPAN_INT_TEXTURE 0x40 -#define SPAN_LAMBDA 0x80 +/* When the triangle_span struct is initialized, these flags indicates + * which values are needed for rendering the triangle. + */ +#define SPAN_RGBA 0x001 +#define SPAN_SPEC 0x002 +#define SPAN_INDEX 0x004 +#define SPAN_Z 0x008 +#define SPAN_FOG 0x010 +#define SPAN_TEXTURE 0x020 +#define SPAN_INT_TEXTURE 0x040 +#define SPAN_LAMBDA 0x080 +#define SPAN_FLAT 0x100 /* flat shading? */ struct triangle_span { |