Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

csProcSkyTexture Class Reference

A polygon of a sky. More...

#include <prsky.h>

Inheritance diagram for csProcSkyTexture:

csObject iObject iBase List of all members.

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.

iGraphics2DGetG2D () const
 methods for the Sky parent - get the g2d.

iGraphics3DGetG3D () const
 get the g3d.

iTextureManagerGetTextureManager () 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.

csVector3GetIntersect () 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).


Detailed Description

A polygon of a sky.


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