From c893a015d8a50a38cd3f727d99835e7e7e2ccea9 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sat, 28 Oct 2000 20:41:13 +0000 Subject: New colormac.h file for color-related macros. Lot's of clean-up in macros.h and mmath.h --- src/mesa/main/eval.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/mesa/main/eval.c') diff --git a/src/mesa/main/eval.c b/src/mesa/main/eval.c index da1ad431619..9a5bbc7c64d 100644 --- a/src/mesa/main/eval.c +++ b/src/mesa/main/eval.c @@ -1,8 +1,8 @@ -/* $Id: eval.c,v 1.11 2000/09/11 18:49:06 brianp Exp $ */ +/* $Id: eval.c,v 1.12 2000/10/28 20:41:14 brianp Exp $ */ /* * Mesa 3-D graphics library - * Version: 3.3 + * Version: 3.5 * * Copyright (C) 1999-2000 Brian Paul All Rights Reserved. * @@ -42,6 +42,7 @@ #include "all.h" #else #include "glheader.h" +#include "colormac.h" #include "context.h" #include "eval.h" #include "macros.h" @@ -2110,7 +2111,7 @@ static GLvector4ub *eval1_color( GLvector4ub *dest, GLfloat u = (coord[i][0] - u1) * du; GLfloat fcolor[4]; horner_bezier_curve(map->Points, fcolor, u, 4, map->Order); - FLOAT_RGBA_TO_UBYTE_RGBA(to[i], fcolor); + FLOAT_RGBA_TO_CHAN_RGBA(to[i], fcolor); flags[i+1] |= VERT_RGBA; /* reset */ } @@ -2270,7 +2271,7 @@ static GLvector4ub *eval2_color( GLvector4ub *dest, GLfloat fcolor[4]; horner_bezier_surf(map->Points, fcolor, u, v, 4, map->Uorder, map->Vorder); - FLOAT_RGBA_TO_UBYTE_RGBA(to[i], fcolor); + FLOAT_RGBA_TO_CHAN_RGBA(to[i], fcolor); flags[i+1] |= VERT_RGBA; /* reset */ } -- cgit v1.2.3