class csPolyTexture This class represents a lighted texture for a polygon
| | CountCleanSubtextures () Return the number of clean sub-textures |
| | CountDirtySubtextures () Return the number of dirty sub-textures |
| | CreateBoundingTextureBox () Calculate the bounding box in (u,v) space for the lighted texture |
| | CreateDirtyMatrix () Create the dirty matrix if needed |
| | csPolyTexture () |
| | FillLightMap (csLightView& lview) Update the lightmap for the given light |
| | GetAndU () |
| | GetDu () |
| | GetDv () |
| | GetFdu () |
| | GetFdv () |
| | GetHeight () Get height of lighted texture. |
| | GetLightMap () |
| | GetMipmapLevel () |
| | GetMipmapSize () Get the mipmap size used for this texture. |
| | GetOrigWidth () |
| | GetShiftU () |
| | GetTextureHandle () |
| | GetWidth () Get width of lighted texture (power of 2). |
| | InitLightMaps () Initialize the lightmaps |
| | MakeAllDirty () Make the dirty matrix completely dirty |
| | MakeDirtyDynamicLights () |
| | RecalcDynamicLights () Recalculate all pseudo and real dynamic lights if the texture is dirty |
| | SetMipmapLevel (int mm) |
| | SetMipmapSize (int mm) Set the mipmap size used for this texture. |
| | SetPolygon (csPolygon3D* p) Set the corresponding polygon for this polytexture |
| | SetTextureHandle (ITextureHandle* th) Set the texture to be used for this polytexture. |
| | ShineDynLightMap (csLightPatch* lp) Update the real lightmap for a given csLightPatch (used for a dynamic light) |
| | ~csPolyTexture () |
| | and_u |
| | dirty_cnt Number of dirty sub-textures (if 0 whole texture is clean and in the cache |
| | dirty_h Height of dirty matrix. |
| | dirty_matrix Dirty matrix used in combination with the sub-texture optimization |
| | dirty_size Size of dirty matrix (dirty_w*dirty_h). |
| | dirty_w Width of dirty matrix. |
| | du |
| | dv |
| | dyn_dirty If true, dynamic lighting needs to be recalculated. |
| | fdu |
| | fdv |
| | h Height of lighted texture. |
| | Imin_u Bounding box of corresponding polygon in 2D texture space |
| | lm LightMap. |
| | mipmap_level The mipmap level (0..3) that this PolyTexture is used for. |
| | mipmap_shift Mipmap shift corresponding to the mipmap_size above. |
| | mipmap_size Mipmap size to use for lightmap boxes: 16, 8, 4, or 2. |
| | polygon The corresponding polygon. |
| | shf_u |
| | size Size including vertical margins (note: size is in pixels, multiply this value by the real number of bytes for every pixel to get the real size) |
| | tcache_data Private texture cache data. |
| | txt_handle The corresponding unlighted texture. |
| | w Width of lighted texture ('w' is a power of 2). |
| | w_orig Original width (not a power of 2) (w_orig <= w). |
This class represents a lighted texture for a polygon. A polygon generally has four of these (one for every mipmap level).
UByte* dirty_matrix
int dirty_w
int dirty_h
int dirty_size
int dirty_cnt
csPolygon3D* polygon
ITextureHandle* txt_handle
int Imin_u
int shf_u
int and_u
int w
int h
int w_orig
int size
int du
int dv
float fdu
float fdv
csLightMap* lm
int mipmap_level
int mipmap_size
int mipmap_shift
bool dyn_dirty
static bool do_accurate_things
static float cfg_cosinus_factor
static int subtex_size
Must be a power of 2 and larger or equal than the largest lightmap
box-size that is used.
static bool subtex_dynlight
csPolyTexture()
virtual ~csPolyTexture()
int GetMipmapSize()
void SetMipmapSize(int mm)
csLightMap* GetLightMap()
int GetWidth()
int GetHeight()
int GetDu()
int GetDv()
float GetFdu()
float GetFdv()
int GetShiftU()
int GetAndU()
int GetOrigWidth()
void SetPolygon(csPolygon3D* p)
void SetMipmapLevel(int mm)
int GetMipmapLevel()
void SetTextureHandle(ITextureHandle* th)
ITextureHandle* GetTextureHandle()
void CreateBoundingTextureBox()
void InitLightMaps()
void FillLightMap(csLightView& lview)
void ShineDynLightMap(csLightPatch* lp)
void MakeDirtyDynamicLights()
float Fmin_u
bool RecalcDynamicLights()
void CreateDirtyMatrix()
void MakeAllDirty()
int CountDirtySubtextures()
int CountCleanSubtextures()
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de