Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

iPolygonTexture Struct Reference

This is a interface to an object responsible for containing the data required for a lighted texture on a polygon. More...

#include <polygon.h>

Inheritance diagram for iPolygonTexture:

iBase csPolyTexture List of all members.

Public Methods

virtual iMaterialHandleGetMaterialHandle ()=0
 Get the material handle associated with this polygon.

virtual float GetFDU ()=0
 Get the u-value of the textures bounding box' lower left corner.

virtual float GetFDV ()=0
 Get the v-value of the textures bounding box' lower left corner.

virtual int GetWidth ()=0
 Get width of lighted texture (power of 2).

virtual int GetHeight ()=0
 Get height of lighted texture.

virtual int GetShiftU ()=0
 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 ()=0
 Get the rounded u-value of the textures bounding box' lower left corner.

virtual int GetIMinV ()=0
 Get the rounded v-value of the textures bounding box' lower left corner.

virtual void GetTextureBox (float &fMinU, float &fMinV, float &fMaxU, float &fMaxV)=0
 Get texture box.

virtual int GetOriginalWidth ()=0
 Get original width.

virtual iPolygon3DGetPolygon ()=0
 Get polygon.

virtual bool DynamicLightsDirty ()=0
 Check if dynamic lighting information should be recalculated.

virtual bool RecalculateDynamicLights ()=0
 Recalculate all pseudo and real dynamic lights if the texture is dirty. More...

virtual iLightMapGetLightMap ()=0
 Get light map.

virtual int GetLightCellSize ()=0
 Query the size of one light cell (always a power of two).

virtual int GetLightCellShift ()=0
 Query log2 (cell size).

virtual void* GetCacheData (int idx)=0
 Get data used internally by texture cache.

virtual void SetCacheData (int idx, void *d)=0
 Set data used internally by texture cache.


Detailed Description

This is a interface to an object responsible for containing the data required for a lighted texture on a polygon.


Member Function Documentation

bool iPolygonTexture::RecalculateDynamicLights ( ) [pure virtual]
 

Recalculate all pseudo and real dynamic lights if the texture is dirty.

The function returns true if there was a recalculation (then the texture needs to be removed from the texture cache).

Reimplemented in csPolyTexture.


The documentation for this struct was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000