From 4c8fadc6d996c8c433826c4c763104b7d69cf7e5 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 22 Jan 2002 14:35:16 +0000 Subject: Clean-up/renaming of the per-vertex attribute bits, specifically, the VERT_BIT_* flags are new and used in many places (esp in T&L code). Updated some comments for doxygen. Various code clean-ups. --- src/mesa/tnl/t_vb_render.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/mesa/tnl/t_vb_render.c') diff --git a/src/mesa/tnl/t_vb_render.c b/src/mesa/tnl/t_vb_render.c index 794ef64705..5ccec25cb2 100644 --- a/src/mesa/tnl/t_vb_render.c +++ b/src/mesa/tnl/t_vb_render.c @@ -1,4 +1,4 @@ -/* $Id: t_vb_render.c,v 1.26 2001/12/17 01:46:58 brianp Exp $ */ +/* $Id: t_vb_render.c,v 1.27 2002/01/22 14:35:17 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -349,39 +349,39 @@ static GLboolean run_render( GLcontext *ctx, */ static void check_render( GLcontext *ctx, struct gl_pipeline_stage *stage ) { - GLuint inputs = VERT_CLIP; + GLuint inputs = VERT_BIT_CLIP; GLuint i; if (ctx->Visual.rgbMode) { - inputs |= VERT_COLOR0_BIT; + inputs |= VERT_BIT_COLOR0; if (ctx->_TriangleCaps & DD_SEPARATE_SPECULAR) - inputs |= VERT_COLOR1_BIT; + inputs |= VERT_BIT_COLOR1; if (ctx->Texture._ReallyEnabled) { for (i = 0 ; i < ctx->Const.MaxTextureUnits ; i++) { if (ctx->Texture.Unit[i]._ReallyEnabled) - inputs |= VERT_TEX(i); + inputs |= VERT_BIT_TEX(i); } } } else { - inputs |= VERT_INDEX_BIT; + inputs |= VERT_BIT_INDEX; } if (ctx->Point._Attenuated) - inputs |= VERT_POINT_SIZE; + inputs |= VERT_BIT_POINT_SIZE; /* How do drivers turn this off? */ if (ctx->Fog.Enabled) - inputs |= VERT_FOG_BIT; + inputs |= VERT_BIT_FOG; if (ctx->_TriangleCaps & DD_TRI_UNFILLED) - inputs |= VERT_EDGEFLAG_BIT; + inputs |= VERT_BIT_EDGEFLAG; if (ctx->RenderMode==GL_FEEDBACK) - inputs |= VERT_TEX_ANY; + inputs |= VERT_BITS_TEX_ANY; stage->inputs = inputs; } -- cgit v1.2.3