core | glapi | vbo | math | shader | swrast | swrast_setup | tnl | tnl_dd

blend.c File Reference


Detailed Description

Blending operations.

#include "glheader.h"
#include "blend.h"
#include "context.h"
#include "enums.h"
#include "macros.h"
#include "mtypes.h"
#include "glapi/glapitable.h"

Functions

void GLAPIENTRY _mesa_BlendFunc (GLenum sfactor, GLenum dfactor)
 Specify the blending operation.
void GLAPIENTRY _mesa_BlendFuncSeparateEXT (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorA, GLenum dfactorA)
 Process GL_EXT_blend_func_separate().
static GLboolean _mesa_validate_blend_equation (GLcontext *ctx, GLenum mode, GLboolean is_separate)
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.
void GLAPIENTRY _mesa_AlphaFunc (GLenum func, GLclampf ref)
 Specify the alpha test function.
void GLAPIENTRY _mesa_LogicOp (GLenum opcode)
 Specify a logic pixel operation for color index rendering.
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.
void GLAPIENTRY _mesa_ClampColorARB (GLenum target, GLenum clamp)
Initialization
void _mesa_init_color (GLcontext *ctx)
 Initialization of the context's Color attribute group.


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

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_ClampColorARB ( GLenum  target,
GLenum  clamp 
)

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.

static GLboolean _mesa_validate_blend_equation ( GLcontext ctx,
GLenum  mode,
GLboolean  is_separate 
) [static]


Generated on Sun Sep 27 06:47:45 2009 for Mesa Main by  doxygen 1.5.4