#include <prsky.h>
Inheritance diagram for csProcSkyTexture:
Public Methods | |
csProcSkyTexture (csProcSky *par) | |
create, given a sky it belongs to. | |
virtual | ~csProcSkyTexture () |
void | SetNextSky (csProcSkyTexture *n) |
csProcSkyTexture* | GetNextSky () const |
virtual bool | PrepareAnim () |
virtual void | Animate (csTicks current_time) |
Draw the next frame. | |
iGraphics2D* | GetG2D () const |
methods for the Sky parent - get the g2d. | |
iGraphics3D* | GetG3D () const |
get the g3d. | |
iTextureManager* | GetTextureManager () const |
get the texture manager (used for encoding colors). | |
int | GetWidth () const |
get the width of this texture. | |
int | GetHeight () const |
get the height of this texture. | |
void | GetTextureSpace (csVector3 &orig, csVector3 &u, csVector3 &v) const |
get texturespace values. | |
void | SetIntersect (csVector3 *icache) |
set cached isects cache array. | |
csVector3* | GetIntersect () const |
get cached isects cache array. | |
void | ForceRerender () |
force the texture to be re-rendered next frame (by the prSky). | |
bool | MustRender () const |
see if the texture must be re-rendered. | |
void | UnsetForceRender () |
unset the forced rendering. | |
bool | AnimPrepared () |
has been prepared ? | |
void | SetTextureSpace (const csVector3 &tex_orig, const csVector3 &total_u, const csVector3 &total_v) |
Set the texturemapping of the sky onto this texture txtorig is a corner point of the polygon (say the topleft point) (in world coordinates) txtu is the vector towards the right for the length of the polygon (thus txtorig+txtu is the topright point) txtv is the vector towards the bottom for the length of the polygon (thus txtorig+txtv is the bottomleft point). |