Public Methods |
| csPolyTexture () |
virtual | ~csPolyTexture () |
void | SetPolygon (csPolygon3D *p) |
| Set the corresponding polygon for this polytexture.
|
csPolygon3D* | GetCSPolygon () |
| Return the polygon corresponding to this texture.
|
void | SetLightMap (csLightMap *lightmap) |
| Set the lightmap for this polytexture (and call IncRef() on the lightmap). More...
|
csLightMap* | GetCSLightMap () |
| Get the cslightmap, for engine internal use (users see GetLightMap below).
|
void | SetMaterialHandle (iMaterialHandle *th) |
| Set the material to be used for this polytexture.
|
void | CreateBoundingTextureBox () |
| Calculate the bounding box in (u,v) space for the lighted texture.
|
void | InitLightMaps () |
| Initialize the lightmaps.
|
void | FillLightMap (csFrustumView *lview, bool vis, csPolygon3D *subpoly) |
| Update the lightmap for the given light. More...
|
void | UpdateFromShadowBitmap (csLight *light, const csVector3 &lightpos, const csColor &lightcolor) |
| Update the lightmap of this polygon using the current shadow-bitmap and the light information below.
|
void | MakeDirtyDynamicLights () |
| set the dirty flag for our lightmap.
|
void | ShineDynLightMap (csLightPatch *lp) |
| Update the real lightmap for a given csLightPatch (used for a dynamic light).
|
virtual iMaterialHandle* | GetMaterialHandle () |
| Get the material handle associated with this polygon.
|
virtual float | GetFDU () |
| Get the u-value of the textures bounding box' lower left corner.
|
virtual float | GetFDV () |
| Get the v-value of the textures bounding box' lower left corner.
|
virtual int | GetWidth () |
| Get width of lighted texture (power of 2).
|
virtual int | GetHeight () |
| Get height of lighted texture.
|
virtual int | GetShiftU () |
| Get the power of the lowest power of 2 that is not smaller than the texture bounding box' width that is: 2^shift_u >= texbbox-width > 2^(shift_u-1).
|
virtual int | GetIMinU () |
| Get the rounded u-value of the textures bounding box' lower left corner.
|
virtual int | GetIMinV () |
| Get the rounded v-value of the textures bounding box' lower left corner.
|
virtual void | GetTextureBox (float &fMinU, float &fMinV, float &fMaxU, float &fMaxV) |
| Get texture box.
|
virtual int | GetOriginalWidth () |
| Get original width.
|
virtual iPolygon3D* | GetPolygon () |
| Get polygon.
|
virtual bool | DynamicLightsDirty () |
| Check if dynamic lighting information should be recalculated.
|
virtual bool | RecalculateDynamicLights () |
| Recalculate all pseudo and real dynamic lights if the texture is dirty. More...
|
virtual iLightMap* | GetLightMap () |
| Get light map.
|
virtual int | GetLightCellSize () |
| Query the size of one light cell.
|
virtual int | GetLightCellShift () |
| Query log2 (cell size).
|
virtual void* | GetCacheData (int idx) |
| Get data used internally by texture cache.
|
virtual void | SetCacheData (int idx, void *d) |
| Set data used internally by texture cache.
|
Public Attributes |
| SCF_DECLARE_IBASE |
Static Public Attributes |
float | cfg_cosinus_factor |
| Option variable: control how much the angle of the light with the polygon it hits affects the final light value. More...
|
Friends |
class | csPolygon3D |
class | csPolygon2D |