From ba643a2094a1e844b6ce60f468057057557859ce Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sat, 28 Oct 2000 18:34:48 +0000 Subject: Basic work to support deep color channels: Replace GLubyte with GLchan Replace 255 with CHAN_MAX --- src/mesa/main/macros.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/mesa/main/macros.h') diff --git a/src/mesa/main/macros.h b/src/mesa/main/macros.h index 70f7b82e8af..443e2731c67 100644 --- a/src/mesa/main/macros.h +++ b/src/mesa/main/macros.h @@ -1,4 +1,4 @@ -/* $Id: macros.h,v 1.9 2000/09/17 21:56:07 brianp Exp $ */ +/* $Id: macros.h,v 1.10 2000/10/28 18:34:48 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -368,6 +368,9 @@ do { \ } while (0) +#define COPY_CHAN4(DST, SRC) COPY_4UBV(DST, SRC) + + /* Assign scalers to short vectors: */ #define ASSIGN_2V( V, V0, V1 ) \ do { \ @@ -500,4 +503,7 @@ do { \ #define FLOAT_TO_INT(X) ( (GLint) (2147483647.0 * (X)) ) +/* XXX chan fix me */ +#define CHAN_TO_FLOAT(C) ( (GLfloat) ((C) * (1.0 / CHAN_MAXF)) ) + #endif -- cgit v1.2.3