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

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

Include dependency graph for worldrender.cpp:


Defines

#define df(x)   s->floor-(x->vdelta/4.0f)
#define dc(x)   s->ceil+(x->vdelta/4.0f)
#define LOOPH
#define LOOPD

Functions

void render_wall (sqr *o, sqr *s, int x1, int y1, int x2, int y2, int mip, sqr *d1, sqr *d2, bool topleft)
int lod_factor ()
 VARP (minlod, LOW_LOD, 60, MAX_LOD)
bool issemi (int mip, int x, int y, int x1, int y1, int x2, int y2)
void render_seg_new (float vx, float vy, float vh, int mip, int x, int y, int xs, int ys)
 if (!minimap) LOOPH continue
LOOPD if ((s->type==SPACE||s->type==FHF)&&s->ceil >=vh &&render_ceil) render_flat(s->ctex
 if (s->type==CHF) render_flatdelta(s->ctex

Variables

const int MAX_MIP = 5
const int MIN_LOD = 2
const int LOW_LOD = 25
const int MAX_LOD = 250
int lod = 40
int lodtop
int lodbot
int lodleft
int lodright
int min_lod
int stats [LARGEST_FACTOR]
bool render_floor
bool render_ceil
LOOPD xx<< mip, yy<< mip, 1
<< mip, s-> 
ceil
LOOPD xx<< mip, yy<< mip, 1
<< mip, s-> 
s
LOOPD xx<< mip, yy<< mip, 1
<< mip, s-> 
t
LOOPD xx<< mip, yy<< mip, 1
<< mip, s-> 
u
LOOPD xx<< mip, yy<< mip, 1
<< mip, s-> 
v
LOOPD xx<< mip, yy<< mip, 1
<< mip, s-> 
true

Define Documentation

#define dc ( x   )     s->ceil+(x->vdelta/4.0f)

#define df ( x   )     s->floor-(x->vdelta/4.0f)

#define LOOPD

Value:

sqr *t = SWS(s,1,0,mfactor); \
                  sqr *u = SWS(s,1,1,mfactor); \
                  sqr *v = SWS(s,0,1,mfactor);

#define LOOPH

Value:

{for(int xx = x; xx<xs; xx++) for(int yy = y; yy<ys; yy++) { \
                  sqr *s = SWS(w,xx,yy,mfactor); if(s->occluded==1) continue; \
                  if(s->defer && !s->occluded && mip && xx>=lx && xx<rx && yy>=ly && yy<ry)


Function Documentation

if ( s->  type = =CHF  ) 

LOOPD if ( (s->type==SPACE||s->type==FHF)&&s->ceil >=vh &&  render_ceil  ) 

if ( !  minimap  ) 

bool issemi ( int  mip,
int  x,
int  y,
int  x1,
int  y1,
int  x2,
int  y2 
)

int lod_factor (  ) 

void render_seg_new ( float  vx,
float  vy,
float  vh,
int  mip,
int  x,
int  y,
int  xs,
int  ys 
)

void render_wall ( sqr *  o,
sqr *  s,
int  x1,
int  y1,
int  x2,
int  y2,
int  mip,
sqr *  d1,
sqr *  d2,
bool  topleft 
)

VARP ( minlod  ,
LOW_LOD  ,
60  ,
MAX_LOD   
)


Variable Documentation

LOOPD xx<<mip, yy<<mip, 1<<mip, s-> ceil

int lod = 40

int lodbot

int lodleft

int lodright

int lodtop

const int LOW_LOD = 25

const int MAX_LOD = 250

const int MAX_MIP = 5

int min_lod

const int MIN_LOD = 2

LOOPD xx<<mip, yy<<mip, 1<<mip, s-> s

int stats[LARGEST_FACTOR]

LOOPD xx<<mip, yy<<mip, 1<<mip, s-> t

LOOPD xx<<mip, yy<<mip, 1<<mip, s-> true

LOOPD xx<<mip, yy<<mip, 1<<mip, s-> u

LOOPD xx<<mip, yy<<mip, 1<<mip, s-> v


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