From dcbe4d6d2f3eb2c099838875780991da34884646 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 13 Sep 2001 22:12:54 +0000 Subject: minor optimizations for flat shading (Klaus Niederkrueger) --- src/mesa/swrast/s_trispan.h | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'src/mesa/swrast/s_trispan.h') 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 { -- cgit v1.2.3