R:/projects/actioncube/_svn/trunk/ac/source/src/shadow.cpp File Reference

#include "pch.h"
#include "cube.h"

Include dependency graph for shadow.cpp:


Defines

#define SHADOWROWS   64
#define SHADOWCOLUMNS   32
#define SHADOWCOLUMNMASK   (0xFFFFFFFFU>>(32-SHADOWCOLUMNS))

Functions

 VARP (stencilshadow, 0, 40, 100)
 VAR (shadowclip, 0, 1, 1)
 VAR (shadowtile, 0, 1, 1)
 VAR (dbgtiles, 0, 0, 1)
 VAR (shadowcasters, 1, 0, 0)
static void extrudeshadowtiles (int x1, int y1, int x2, int y2, int x3, int y3)
static void addshadowtiles (float x1, float y1, float x2, float y2)
bool addshadowbox (const vec &bbmin, const vec &bbmax, const vec &extrude, const glmatrixf &mat)
static void rendershadowtiles ()
void drawstencilshadows ()

Variables

int stenciling = 0
uint shadowtiles [SHADOWROWS+1]
float shadowx1 = 1
float shadowy1 = 1
float shadowx2 = -1
float shadowy2 = -1

Define Documentation

#define SHADOWCOLUMNMASK   (0xFFFFFFFFU>>(32-SHADOWCOLUMNS))

#define SHADOWCOLUMNS   32

#define SHADOWROWS   64


Function Documentation

bool addshadowbox ( const vec &  bbmin,
const vec &  bbmax,
const vec &  extrude,
const glmatrixf &  mat 
)

static void addshadowtiles ( float  x1,
float  y1,
float  x2,
float  y2 
) [static]

void drawstencilshadows (  ) 

static void extrudeshadowtiles ( int  x1,
int  y1,
int  x2,
int  y2,
int  x3,
int  y3 
) [static]

static void rendershadowtiles (  )  [static]

VAR ( shadowcasters  ,
1  ,
0  ,
0   
)

VAR ( dbgtiles  ,
0  ,
0  ,
1   
)

VAR ( shadowtile  ,
0  ,
1  ,
1   
)

VAR ( shadowclip  ,
0  ,
1  ,
1   
)

VARP ( stencilshadow  ,
0  ,
40  ,
100   
)


Variable Documentation

uint shadowtiles[SHADOWROWS+1]

float shadowx1 = 1

float shadowx2 = -1

float shadowy1 = 1

float shadowy2 = -1

int stenciling = 0


Generated on Mon Dec 8 21:41:33 2008 for AssaultCube by  doxygen 1.5.7.1