From 96385fa15569e25cd0977e678c0ff3bdab6ef316 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sat, 14 Jul 2001 17:53:04 +0000 Subject: more work on float colors (still not finished) --- src/mesa/swrast/s_trispan.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (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 cd577f51ca..2ac3c4d17a 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.1 2001/05/14 16:23:04 brianp Exp $ */ +/* $Id: s_trispan.h,v 1.2 2001/07/14 17:53:04 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -58,6 +58,15 @@ struct triangle_span { GLint x, y; GLuint count; GLuint activeMask; /* OR of the SPAN_* flags */ +#if CHAN_TYPE == GL_FLOAT + GLfloat red, redStep; + GLfloat green, greenStep; + GLfloat blue, blueStep; + GLfloat alpha, alphaStep; + GLfloat specRed, specRedStep; + GLfloat specGreen, specGreenStep; + GLfloat specBlue, specBlueStep; +#else GLfixed red, redStep; GLfixed green, greenStep; GLfixed blue, blueStep; @@ -65,6 +74,7 @@ struct triangle_span { GLfixed specRed, specRedStep; GLfixed specGreen, specGreenStep; GLfixed specBlue, specBlueStep; +#endif GLfixed index, indexStep; GLfixed z, zStep; GLfloat fog, fogStep; -- cgit v1.2.3