Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
lightmapworker Struct Reference

Structure containing anything to calculate while calclighting, which gets passed to the lightmap threads. More...

Public Member Functions

 lightmapworker ()
 
 ~lightmapworker ()
 
void reset ()
 
bool setupthread ()
 
void cleanupthread ()
 

Static Public Member Functions

static int work (void *data)
 

Public Attributes

ucharbuf
 
int bufstart
 
int bufused
 
lightmapinfofirstlightmap
 
lightmapinfolastlightmap
 
lightmapinfocurlightmaps
 
cubec
 
cubeextext
 
ucharcolorbuf
 
bvecraybuf
 
ucharambient
 
ucharblur
 
veccolordata
 
vecraydata
 
ucharocclusiondata
 
int type
 
int bpp
 
int w
 
int h
 
int orient
 
int rotate
 
VSlotvslot
 
Slotslot
 
vector< const extentity * > lights
 
ShadowRayCacheshadowraycache
 
BlendMapCacheblendmapcache
 
bool needspace
 
bool doneworking
 
SDL_cond * spacecond
 
SDL_Thread * thread
 

Detailed Description

Structure containing anything to calculate while calclighting, which gets passed to the lightmap threads.

Constructor & Destructor Documentation

lightmapworker::lightmapworker ( )
lightmapworker::~lightmapworker ( )

Member Function Documentation

void lightmapworker::cleanupthread ( )

References spacecond, and thread.

Referenced by setupthreads(), and ~lightmapworker().

void lightmapworker::reset ( )
bool lightmapworker::setupthread ( )

References spacecond, thread, and work().

int lightmapworker::work ( void data)
static

Member Data Documentation

uchar* lightmapworker::ambient
BlendMapCache* lightmapworker::blendmapcache
uchar * lightmapworker::blur
int lightmapworker::bpp
uchar* lightmapworker::buf
int lightmapworker::bufstart
int lightmapworker::bufused
cube* lightmapworker::c

Referenced by previewblends(), and setupsurfaces().

uchar* lightmapworker::colorbuf
vec* lightmapworker::colordata
lightmapinfo * lightmapworker::curlightmaps
bool lightmapworker::doneworking
cubeext* lightmapworker::ext
lightmapinfo* lightmapworker::firstlightmap
int lightmapworker::h
lightmapinfo * lightmapworker::lastlightmap
vector<const extentity *> lightmapworker::lights
bool lightmapworker::needspace
uchar* lightmapworker::occlusiondata
int lightmapworker::orient
bvec* lightmapworker::raybuf
vec * lightmapworker::raydata
int lightmapworker::rotate
ShadowRayCache* lightmapworker::shadowraycache
Slot* lightmapworker::slot
SDL_cond* lightmapworker::spacecond
SDL_Thread* lightmapworker::thread
int lightmapworker::type
VSlot* lightmapworker::vslot
int lightmapworker::w

The documentation for this struct was generated from the following file: