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

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

Include dependency graph for worldlight.cpp:


Classes

struct  dlight

Defines

#define median(m)

Functions

 VAR (lightscale, 1, 4, 100)
void lightray (float bx, float by, const persistent_entity &light, float fade=1, bool flicker=false)
void calclightsource (const persistent_entity &l, float fade=1, bool flicker=true)
void postlightarea (const block &a)
 VARP (fullbrightlevel, 0, 176, 255)
void fullbrightlight (int level)
void calclight ()
 VAR (dynlight, 0, 1, 1)
static bool insidearea (const block &a, const block &b)
void preparedynlight (dlight &d)
void adddynlight (physent *owner, const vec &o, int reach, int expire, int fade, uchar r, uchar g, uchar b)
void cleardynlights ()
void removedynlights (physent *owner)
void dodynlights ()
void undodynlights ()
block * blockcopy (const block &s)
void blockpaste (const block &b)
void freeblock (block *&b)

Variables

int lastcalclight = 0
vector< dlight > dlights

Define Documentation

#define median ( m   ) 

Value:

s->m = (s->m*2 + SW(s,1,0)->m*2  + SW(s,0,1)->m*2 \
                                         + SW(s,-1,0)->m*2 + SW(s,0,-1)->m*2 \
                                         + SW(s,1,1)->m    + SW(s,1,-1)->m \
                                         + SW(s,-1,1)->m   + SW(s,-1,-1)->m)/14;


Function Documentation

void adddynlight ( physent *  owner,
const vec &  o,
int  reach,
int  expire,
int  fade,
uchar  r,
uchar  g,
uchar  b 
)

block* blockcopy ( const block &  s  ) 

void blockpaste ( const block &  b  ) 

void calclight (  ) 

void calclightsource ( const persistent_entity &  l,
float  fade = 1,
bool  flicker = true 
)

void cleardynlights (  ) 

void dodynlights (  ) 

void freeblock ( block *&  b  ) 

void fullbrightlight ( int  level  ) 

static bool insidearea ( const block &  a,
const block &  b 
) [inline, static]

void lightray ( float  bx,
float  by,
const persistent_entity &  light,
float  fade = 1,
bool  flicker = false 
)

void postlightarea ( const block &  a  ) 

void preparedynlight ( dlight &  d  ) 

void removedynlights ( physent *  owner  ) 

void undodynlights (  ) 

VAR ( dynlight  ,
0  ,
1  ,
1   
)

VAR ( lightscale  ,
1  ,
4  ,
100   
)

VARP ( fullbrightlevel  ,
0  ,
176  ,
255   
)


Variable Documentation

int lastcalclight = 0


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