core  array_cache  math  swrast  swrast_setup  tnl  tnl_dd 
Main Page   Data Structures   File List   Data Fields   Globals   Related Pages  

blend.h File Reference

Blending functions operations. More...

#include "mtypes.h"

Functions

void GLAPIENTRY _mesa_BlendFunc (GLenum sfactor, GLenum dfactor)
 Specify the blending operation. More...

void GLAPIENTRY _mesa_BlendFuncSeparateEXT (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorA, GLenum dfactorA)
 Process GL_EXT_blend_func_separate(). More...

void GLAPIENTRY _mesa_BlendEquation (GLenum mode)
void GLAPIENTRY _mesa_BlendEquationSeparateEXT (GLenum modeRGB, GLenum modeA)
void GLAPIENTRY _mesa_BlendColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
 Set the blending color. More...

void GLAPIENTRY _mesa_AlphaFunc (GLenum func, GLclampf ref)
 Specify the alpha test function. More...

void GLAPIENTRY _mesa_LogicOp (GLenum opcode)
 Specify a logic pixel operation for color index rendering. More...

void GLAPIENTRY _mesa_IndexMask (GLuint mask)
void GLAPIENTRY _mesa_ColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
 Enable or disable writing of frame buffer color components. More...

void _mesa_init_color (GLcontext *ctx)
 Initialization of the context's Color attribute group. More...


Detailed Description

Blending functions operations.


Function Documentation

void GLAPIENTRY _mesa_AlphaFunc GLenum    func,
GLclampf    ref
 

Specify the alpha test function.

Parameters:
func  alpha comparison function.
ref  reference value.
Verifies the parameters and updates gl_colorbuffer_attrib. On a change, flushes the vertices and notifies the driver via dd_function_table::AlphaFunc callback.

void GLAPIENTRY _mesa_BlendColor GLclampf    red,
GLclampf    green,
GLclampf    blue,
GLclampf    alpha
 

Set the blending color.

Parameters:
red  red color component.
green  green color component.
blue  blue color component.
alpha  alpha color component.
See also:
glBlendColor().
Clamps the parameters and updates gl_colorbuffer_attrib::BlendColor. On a change, flushes the vertices and notifies the driver via dd_function_table::BlendColor callback.

void GLAPIENTRY _mesa_BlendEquation GLenum    mode
 

void GLAPIENTRY _mesa_BlendEquationSeparateEXT GLenum    modeRGB,
GLenum    modeA
 

void GLAPIENTRY _mesa_BlendFunc GLenum    sfactor,
GLenum    dfactor
 

Specify the blending operation.

Parameters:
sfactor  source factor operator.
dfactor  destination factor operator.
See also:
glBlendFunc, glBlendFuncSeparateEXT
Swizzles the inputs and calls glBlendFuncSeparateEXT. This is done using the CurrentDispatch table in the context, so this same function can be used while compiling display lists. Therefore, there is no need for the display list code to save and restore this function.

void GLAPIENTRY _mesa_BlendFuncSeparateEXT GLenum    sfactorRGB,
GLenum    dfactorRGB,
GLenum    sfactorA,
GLenum    dfactorA
 

Process GL_EXT_blend_func_separate().

Parameters:
sfactorRGB  RGB source factor operator.
dfactorRGB  RGB destination factor operator.
sfactorA  alpha source factor operator.
dfactorA  alpha destination factor operator.
Verifies the parameters and updates gl_colorbuffer_attrib. On a change, flush the vertices and notify the driver via dd_function_table::BlendFuncSeparate.

void GLAPIENTRY _mesa_ColorMask GLboolean    red,
GLboolean    green,
GLboolean    blue,
GLboolean    alpha
 

Enable or disable writing of frame buffer color components.

Parameters:
red  whether to mask writing of the red color component.
green  whether to mask writing of the green color component.
blue  whether to mask writing of the blue color component.
alpha  whether to mask writing of the alpha color component.
See also:
glColorMask().
Sets the appropriate value of gl_colorbuffer_attrib::ColorMask. On a change, flushes the vertices and notifies the driver via the dd_function_table::ColorMask callback.

void GLAPIENTRY _mesa_IndexMask GLuint    mask
 

void _mesa_init_color GLcontext   ctx
 

Initialization of the context's Color attribute group.

Parameters:
ctx  GL context.
Initializes the related fields in the context color attribute group, __GLcontextRec::Color.

void GLAPIENTRY _mesa_LogicOp GLenum    opcode
 

Specify a logic pixel operation for color index rendering.

Parameters:
opcode  operation.
Verifies that opcode is a valid enum and updates gl_colorbuffer_attrib::LogicOp. On a change, flushes the vertices and notifies the driver via the dd_function_table::LogicOpcode callback.


Generated on Sun May 16 15:55:11 2004 for Mesa Core by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001