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

s_aatriangle.c File Reference

#include "main/glheader.h"
#include "main/context.h"
#include "main/colormac.h"
#include "main/macros.h"
#include "main/imports.h"
#include "s_aatriangle.h"
#include "s_context.h"
#include "s_span.h"
#include "s_aatritemp.h"

Defines

#define CONSTANT_PLANE(VALUE, PLANE)
#define SOLVE_PLANE(X, Y, PLANE)   ((PLANE[3] + PLANE[0] * (X) + PLANE[1] * (Y)) / -PLANE[2])
#define POS(a, b)   (0.5+a*4+b)/16
#define DO_Z
#define DO_RGBA
#define DO_Z
#define DO_ATTRIBS
#define DO_INDEX
#define DO_Z
#define DO_RGBA
#define DO_ATTRIBS

Functions

static INLINE void compute_plane (const GLfloat v0[], const GLfloat v1[], const GLfloat v2[], GLfloat z0, GLfloat z1, GLfloat z2, GLfloat plane[4])
static INLINE void constant_plane (GLfloat value, GLfloat plane[4])
static INLINE GLfloat solve_plane (GLfloat x, GLfloat y, const GLfloat plane[4])
static INLINE GLfloat solve_plane_recip (GLfloat x, GLfloat y, const GLfloat plane[4])
static INLINE GLchan solve_plane_chan (GLfloat x, GLfloat y, const GLfloat plane[4])
static INLINE GLfloat plane_dx (const GLfloat plane[4])
static INLINE GLfloat plane_dy (const GLfloat plane[4])
static GLfloat compute_coveragef (const GLfloat v0[3], const GLfloat v1[3], const GLfloat v2[3], GLint winx, GLint winy)
static GLint compute_coveragei (const GLfloat v0[3], const GLfloat v1[3], const GLfloat v2[3], GLint winx, GLint winy)
static void rgba_aa_tri (GLcontext *ctx, const SWvertex *v0, const SWvertex *v1, const SWvertex *v2)
static void index_aa_tri (GLcontext *ctx, const SWvertex *v0, const SWvertex *v1, const SWvertex *v2)
static void general_aa_tri (GLcontext *ctx, const SWvertex *v0, const SWvertex *v1, const SWvertex *v2)
void _swrast_set_aa_triangle_function (GLcontext *ctx)


Define Documentation

#define CONSTANT_PLANE ( VALUE,
PLANE   ) 

Value:

do {                                    \
   PLANE[0] = 0.0F;                     \
   PLANE[1] = 0.0F;                     \
   PLANE[2] = -1.0F;                    \
   PLANE[3] = VALUE;                    \
} while (0)

#define DO_ATTRIBS

#define DO_ATTRIBS

#define DO_INDEX

#define DO_RGBA

#define DO_RGBA

#define DO_Z

#define DO_Z

#define DO_Z

#define POS ( a,
 )     (0.5+a*4+b)/16

#define SOLVE_PLANE ( X,
Y,
PLANE   )     ((PLANE[3] + PLANE[0] * (X) + PLANE[1] * (Y)) / -PLANE[2])


Function Documentation

void _swrast_set_aa_triangle_function ( GLcontext ctx  ) 

static GLfloat compute_coveragef ( const GLfloat  v0[3],
const GLfloat  v1[3],
const GLfloat  v2[3],
GLint  winx,
GLint  winy 
) [static]

static GLint compute_coveragei ( const GLfloat  v0[3],
const GLfloat  v1[3],
const GLfloat  v2[3],
GLint  winx,
GLint  winy 
) [static]

static INLINE void compute_plane ( const GLfloat  v0[],
const GLfloat  v1[],
const GLfloat  v2[],
GLfloat  z0,
GLfloat  z1,
GLfloat  z2,
GLfloat  plane[4] 
) [static]

static INLINE void constant_plane ( GLfloat  value,
GLfloat  plane[4] 
) [static]

static void general_aa_tri ( GLcontext ctx,
const SWvertex v0,
const SWvertex v1,
const SWvertex v2 
) [static]

static void index_aa_tri ( GLcontext ctx,
const SWvertex v0,
const SWvertex v1,
const SWvertex v2 
) [static]

static INLINE GLfloat plane_dx ( const GLfloat  plane[4]  )  [static]

static INLINE GLfloat plane_dy ( const GLfloat  plane[4]  )  [static]

static void rgba_aa_tri ( GLcontext ctx,
const SWvertex v0,
const SWvertex v1,
const SWvertex v2 
) [static]

static INLINE GLfloat solve_plane ( GLfloat  x,
GLfloat  y,
const GLfloat  plane[4] 
) [static]

static INLINE GLchan solve_plane_chan ( GLfloat  x,
GLfloat  y,
const GLfloat  plane[4] 
) [static]

static INLINE GLfloat solve_plane_recip ( GLfloat  x,
GLfloat  y,
const GLfloat  plane[4] 
) [static]


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