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/config.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/mesa/main/config.h') diff --git a/src/mesa/main/config.h b/src/mesa/main/config.h index 7e263630134..35a0dded6ad 100644 --- a/src/mesa/main/config.h +++ b/src/mesa/main/config.h @@ -1,4 +1,4 @@ -/* $Id: config.h,v 1.19 2000/10/26 19:26:18 brianp Exp $ */ +/* $Id: config.h,v 1.20 2000/10/28 18:34:48 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -164,6 +164,16 @@ #define CHAN_BITS 8 #define CHAN_MAX ((1 << CHAN_BITS) - 1) #define CHAN_MAXF ((GLfloat) CHAN_MAX) +#if CHAN_BITS == 8 + typedef GLubyte GLchan; +#elif CHAN_BITS == 16 + typedef GLushort GLchan; +#else +#error illegal number of color channel bits +#endif + + + /* -- cgit v1.2.3