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

s_alpha.c File Reference


Detailed Description

Functions to apply alpha test.

#include "main/glheader.h"
#include "main/context.h"
#include "main/colormac.h"
#include "main/macros.h"
#include "s_alpha.h"
#include "s_context.h"

Defines

#define ALPHA_TEST(ALPHA, LOOP_CODE)

Functions

GLint _swrast_alpha_test (const GLcontext *ctx, SWspan *span)
 Perform the alpha test for an array of pixels.


Define Documentation

#define ALPHA_TEST ( ALPHA,
LOOP_CODE   ) 


Function Documentation

GLint _swrast_alpha_test ( const GLcontext ctx,
SWspan span 
)

Perform the alpha test for an array of pixels.

For pixels that fail the test, mask[i] will be set to 0.

Returns:
0 if all pixels in the span failed the alpha test, 1 if one or more pixels passed the alpha test.


Generated on Sun Sep 27 06:48:05 2009 for Mesa Software Rasterization (swrast) by  doxygen 1.5.4