diff options
author | Brian Paul <[email protected]> | 2001-01-24 00:04:58 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2001-01-24 00:04:58 +0000 |
commit | 74b493a5e61237de081a438e774e5d8139d4c6b7 (patch) | |
tree | a8bc94a65bacc67b9b1473f91a2bd84cd2b25937 /src/mesa/main/dd.h | |
parent | 125fddc31dc9959901d9f1ece693b09f04426d48 (diff) |
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
Diffstat (limited to 'src/mesa/main/dd.h')
-rw-r--r-- | src/mesa/main/dd.h | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h index 86220bdf4ad..e529cdde2ba 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 ); |