From 74b493a5e61237de081a438e774e5d8139d4c6b7 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 24 Jan 2001 00:04:58 +0000 Subject: Lots of GLchan datatype changes. Added GLvector4us datatype in math/m_vector.[ch] Added _math_trans_4us() in math/m_translate.[ch] Choose GLvector4ub, GLvector4us, GLvector4f at compile time based on CHAN_BITS. Made Driver.ClearColor() and Driver.ClearIndex() optional driver functions. Changed args to Driver.ClearColor(), updated drivers. Reordered files in Makefile.X11 --- src/mesa/main/dd.h | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'src/mesa/main/dd.h') diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h index 86220bdf4a..e529cdde2b 100644 --- a/src/mesa/main/dd.h +++ b/src/mesa/main/dd.h @@ -1,4 +1,4 @@ -/* $Id: dd.h,v 1.47 2001/01/09 00:02:55 brianp Exp $ */ +/* $Id: dd.h,v 1.48 2001/01/24 00:04:58 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -161,19 +161,6 @@ struct dd_function_table { * LineFunc, or TriangleFunc). */ - void (*ClearIndex)( GLcontext *ctx, GLuint index ); - /* - * Called whenever glClearIndex() is called. Set the index for clearing - * the color buffer when in color index mode. - */ - - void (*ClearColor)( GLcontext *ctx, GLchan red, GLchan green, - GLchan blue, GLchan alpha ); - /* - * Called whenever glClearColor() is called. Set the color for clearing - * the color buffer when in RGBA mode. - */ - GLbitfield (*Clear)( GLcontext *ctx, GLbitfield mask, GLboolean all, GLint x, GLint y, GLint width, GLint height ); /* Clear the color/depth/stencil/accum buffer(s). @@ -754,7 +741,9 @@ struct dd_function_table { void (*BlendFuncSeparate)(GLcontext *ctx, GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorA, GLenum dfactorA); + void (*ClearColor)(GLcontext *ctx, const GLchan color[4]); void (*ClearDepth)(GLcontext *ctx, GLclampd d); + void (*ClearIndex)(GLcontext *ctx, GLuint index); void (*ClearStencil)(GLcontext *ctx, GLint s); void (*ColorMask)(GLcontext *ctx, GLboolean rmask, GLboolean gmask, GLboolean bmask, GLboolean amask ); -- cgit v1.2.3