SkyDomeComponent Class Reference

Component wrapper of Irrlicht's SceneManager function addSkyDomeSceneNode(...). More...

Inheritance diagram for SkyDomeComponent:

Inheritance graph
[legend]
Collaboration diagram for SkyDomeComponent:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 SkyDomeComponent (Entity *parent, const std::string &fileName, u32 hRes=16, u32 vRes=8, f32 texturePerc=0.9f, f32 spherePerc=2.0f, f32 radius=1000.0f)
 Constructor.
 SkyDomeComponent (Entity *parent, ITexture *texture, u32 hRes=16, u32 vRes=8, f32 texturePerc=0.9f, f32 spherePerc=2.0f, f32 radius=1000.0f)
 Constructor.
 ~SkyDomeComponent ()
 Deconstructor.

Static Public Member Functions

static SkyDomeComponentrefFactory (Entity *parent, const std::string &fileName, u32 hRes, u32 vRes, f32 texturePerc, f32 spherePerc, f32 radius)
 Will be used to instanciate objects of this class.


Detailed Description

Component wrapper of Irrlicht's SceneManager function addSkyDomeSceneNode(...).

Definition at line 26 of file SkyDomeComponent.h.


Constructor & Destructor Documentation

SkyDomeComponent::SkyDomeComponent ( Entity parent,
const std::string &  fileName,
u32  hRes = 16,
u32  vRes = 8,
f32  texturePerc = 0.9f,
f32  spherePerc = 2.0f,
f32  radius = 1000.0f 
)

Constructor.

Parameters:
parent The parent entity to which the component should be added.
fileName File with the texture to add.
hRes Number of vertices of a horizontal layer of the sphere.
vRes Number of vertices of a vertical layer of the sphere.
texturePerc How much of the height of the texture is used. Should be between 0 and 1.
spherePerc How much of the sphere is drawn. Value should be between 0 and 2, where 1 is an exact half-sphere and 2 is a full sphere.
radius Radius of the skydome.

Definition at line 24 of file SkyDomeComponent.cpp.

SkyDomeComponent::SkyDomeComponent ( Entity parent,
ITexture *  texture,
u32  hRes = 16,
u32  vRes = 8,
f32  texturePerc = 0.9f,
f32  spherePerc = 2.0f,
f32  radius = 1000.0f 
)

Constructor.

Parameters:
parent The parent entity to which the component should be added.
texture Pointer to the texture to add.
hRes Number of vertices of a horizontal layer of the sphere.
vRes Number of vertices of a vertical layer of the sphere.
texturePerc How much of the height of the texture is used. Should be between 0 and 1.
spherePerc How much of the sphere is drawn. Value should be between 0 and 2, where 1 is an exact half-sphere and 2 is a full sphere.
radius Radius of the skydome.

Definition at line 42 of file SkyDomeComponent.cpp.

SkyDomeComponent::~SkyDomeComponent (  ) 

Deconstructor.

Definition at line 59 of file SkyDomeComponent.cpp.


Member Function Documentation

SkyDomeComponent * SkyDomeComponent::refFactory ( Entity parent,
const std::string &  fileName,
u32  hRes,
u32  vRes,
f32  texturePerc,
f32  spherePerc,
f32  radius 
) [static]

Will be used to instanciate objects of this class.

Note:
For internal use only!

Definition at line 64 of file SkyDomeComponent.cpp.


The documentation for this class was generated from the following files:

Generated on Wed Jun 10 22:26:26 2009 for Sirrf - Simple Irrlicht Framework by  doxygen 1.5.8