-/* $Id: blend.c,v 1.29 2001/03/03 20:33:27 brianp Exp $ */
+/* $Id: blend.c,v 1.30 2001/03/07 00:21:32 brianp Exp $ */
/*
* Mesa 3-D graphics library
if (ctx->Color.BlendEquation == mode)
return;
-
+
FLUSH_VERTICES(ctx, _NEW_COLOR);
ctx->Color.BlendEquation = mode;
ctx->Color.BlendEnabled);
if (ctx->Driver.BlendEquation)
- ctx->Driver.BlendEquation( ctx, mode );
+ (*ctx->Driver.BlendEquation)( ctx, mode );
}
FLUSH_VERTICES(ctx, _NEW_COLOR);
COPY_4FV( ctx->Color.BlendColor, tmp );
+
+ if (ctx->Driver.BlendColor)
+ (*ctx->Driver.BlendColor)(ctx, tmp);
}
-/* $Id: dd.h,v 1.55 2001/03/03 00:12:47 brianp Exp $ */
+/* $Id: dd.h,v 1.56 2001/03/07 00:21:32 brianp Exp $ */
/*
* Mesa 3-D graphics library
*** May add more functions like these to the device driver in the future.
***/
void (*AlphaFunc)(GLcontext *ctx, GLenum func, GLchan ref);
+ void (*BlendColor)(GLcontext *ctx, const GLfloat color[4]);
void (*BlendEquation)(GLcontext *ctx, GLenum mode);
void (*BlendFunc)(GLcontext *ctx, GLenum sfactor, GLenum dfactor);
void (*BlendFuncSeparate)(GLcontext *ctx,