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

stencil.c File Reference

Stencil operations. More...

#include "glheader.h"
#include "imports.h"
#include "context.h"
#include "depth.h"
#include "macros.h"
#include "stencil.h"
#include "mtypes.h"
#include "enable.h"

Functions

void GLAPIENTRY _mesa_ClearStencil (GLint s)
 Set the clear value for the stencil buffer. More...

void GLAPIENTRY _mesa_StencilFunc (GLenum func, GLint ref, GLuint mask)
 Set the function and reference value for stencil testing. More...

void GLAPIENTRY _mesa_StencilMask (GLuint mask)
 Set the stencil writing mask. More...

void GLAPIENTRY _mesa_StencilOp (GLenum fail, GLenum zfail, GLenum zpass)
 Set the stencil test actions. More...

void GLAPIENTRY _mesa_ActiveStencilFaceEXT (GLenum face)
void _mesa_init_stencil (GLcontext *ctx)
 Initialize the context stipple state. More...


Detailed Description

Stencil operations.


Function Documentation

void GLAPIENTRY _mesa_ActiveStencilFaceEXT GLenum    face
 

void GLAPIENTRY _mesa_ClearStencil GLint    s
 

Set the clear value for the stencil buffer.

Parameters:
s  clear value.
See also:
glClearStencil().
Updates gl_stencil_attrib::Clear. On change flushes the vertices and notifies the driver via the dd_function_table::ClearStencil callback.

void _mesa_init_stencil GLcontext   ctx
 

Initialize the context stipple state.

Parameters:
ctx  GL context.
Initializes __GLcontextRec::Stencil attribute group.

void GLAPIENTRY _mesa_StencilFunc GLenum    func,
GLint    ref,
GLuint    mask
 

Set the function and reference value for stencil testing.

Parameters:
func  test function.
ref  reference value.
mask  bitmask.
See also:
glStencilFunc().
Verifies the parameters and updates the respective values in __GLcontextRec::Stencil. On change flushes the vertices and notifies the driver via the dd_function_table::StencilFunc callback.

void GLAPIENTRY _mesa_StencilMask GLuint    mask
 

Set the stencil writing mask.

Parameters:
mask  bit-mask to enable/disable writing of individual bits in the stencil planes.
See also:
glStencilMask().
Updates gl_stencil_attrib::WriteMask. On change flushes the vertices and notifies the driver via the dd_function_table::StencilMask callback.

void GLAPIENTRY _mesa_StencilOp GLenum    fail,
GLenum    zfail,
GLenum    zpass
 

Set the stencil test actions.

Parameters:
fail  action to take when stencil test fails.
zfail  action to take when stencil test passes, but the depth test fails.
zpass  action to take when stencil test passes and the depth test passes (or depth testing is not enabled).
See also:
glStencilOp().
Verifies the parameters and updates the respective fields in __GLcontextRec::Stencil. On change flushes the vertices and notifies the driver via the dd_function_table::StencilOp callback.


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