CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

csProcSkyTexture Class Reference

A polygon of a sky. More...

#include <prsky.h>

Inheritance diagram for csProcSkyTexture:

csProcTexture csObject iObject iBase List of all members.

Public Methods

 csProcSkyTexture (csProcSky *par)
 create, given a sky it belongs to. More...

virtual bool PrepareAnim ()
 Prepare the animation for use. More...

virtual void Animate (csTicks current_time)
 Draw the next frame. More...

int GetWidth () const
 get the width of this texture. More...

int GetHeight () const
 get the height of this texture. More...

void GetTextureSpace (csVector3 &orig, csVector3 &u, csVector3 &v) const
 get texturespace values. More...

void SetIntersect (csVector3 *icache)
 set cached isects cache array. More...

csVector3GetIntersect () const
 get cached isects cache array. More...

void ForceRerender ()
 force the texture to be re-rendered next frame (by the prSky). More...

bool MustRender () const
 see if the texture must be re-rendered. More...

void UnsetForceRender ()
 unset the forced rendering. More...

bool AnimPrepared ()
 has been prepared ? More...

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). More...


Detailed Description

A polygon of a sky.

Definition at line 32 of file prsky.h.


Constructor & Destructor Documentation

csProcSkyTexture::csProcSkyTexture csProcSky   par
 

create, given a sky it belongs to.


Member Function Documentation

virtual void csProcSkyTexture::Animate csTicks    current_time [virtual]
 

Draw the next frame.

Implements csProcTexture.

bool csProcSkyTexture::AnimPrepared   [inline]
 

has been prepared ?

Definition at line 79 of file prsky.h.

void csProcSkyTexture::ForceRerender   [inline]
 

force the texture to be re-rendered next frame (by the prSky).

Definition at line 73 of file prsky.h.

int csProcSkyTexture::GetHeight   const [inline]
 

get the height of this texture.

Definition at line 63 of file prsky.h.

csVector3* csProcSkyTexture::GetIntersect   const [inline]
 

get cached isects cache array.

Definition at line 70 of file prsky.h.

void csProcSkyTexture::GetTextureSpace csVector3   orig,
csVector3   u,
csVector3   v
const [inline]
 

get texturespace values.

Definition at line 65 of file prsky.h.

int csProcSkyTexture::GetWidth   const [inline]
 

get the width of this texture.

Definition at line 61 of file prsky.h.

bool csProcSkyTexture::MustRender   const [inline]
 

see if the texture must be re-rendered.

Definition at line 75 of file prsky.h.

virtual bool csProcSkyTexture::PrepareAnim   [virtual]
 

Prepare the animation for use.

This needs to be done after the texture has been prepared.

Reimplemented from csProcTexture.

void csProcSkyTexture::SetIntersect csVector3   icache [inline]
 

set cached isects cache array.

Definition at line 68 of file prsky.h.

void csProcSkyTexture::SetTextureSpace const csVector3   tex_orig,
const csVector3   total_u,
const csVector3   total_v
[inline]
 

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

Definition at line 89 of file prsky.h.

void csProcSkyTexture::UnsetForceRender   [inline]
 

unset the forced rendering.

Definition at line 77 of file prsky.h.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.14