diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2000-10-30 13:31:59 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2000-10-30 13:31:59 +0000 |
commit | a96308c37db0bc0086a017d318bc3504aa5f0b1a (patch) | |
tree | 0010de3aa19901acf13b57e57e7ba465abffa95e /src/mesa/main/extensions.h | |
parent | a4575499679d9d91055a35c7673b81872ec127cb (diff) |
Replace the flags Mesa was using for ctx->NewState with a new set
based on the GL attribute groups.
Introduced constants describing the circumstances under which some
key derived values can change:
_SWRAST_NEW_RASTERMASK -- ctx->RasterMask
_SWRAST_NEW_TRIANGLE -- The software rasterizer's triangle
function
_DD_NEW_FEEDBACK -- the 'DD_FEEDBACK' bit in ctx->TriangleCaps
These are helpful in deciding whether you need to recalculate state if your
recalculation involves reference to a derived value.
Diffstat (limited to 'src/mesa/main/extensions.h')
-rw-r--r-- | src/mesa/main/extensions.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mesa/main/extensions.h b/src/mesa/main/extensions.h index 4c24bf1412..4c861b32ac 100644 --- a/src/mesa/main/extensions.h +++ b/src/mesa/main/extensions.h @@ -1,4 +1,4 @@ -/* $Id: extensions.h,v 1.8 2000/03/07 18:24:14 brianp Exp $ */ +/* $Id: extensions.h,v 1.9 2000/10/30 13:32:00 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -31,14 +31,11 @@ #include "types.h" -#define DEFAULT_OFF 0x0 -#define DEFAULT_ON 0x1 -#define ALWAYS_ENABLED 0x2 /* Return 0 on success. */ -extern int gl_extensions_add( GLcontext *ctx, int state, - const char *name, void (*notify)( void ) ); +extern int gl_extensions_add( GLcontext *ctx, GLboolean enabled, + const char *name, GLboolean *flag_ptr ); extern int gl_extensions_enable( GLcontext *ctx, const char *name ); extern int gl_extensions_disable( GLcontext *ctx, const char *name ); |