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, u32 hRes=16, u32 vRes=8, f32 texturePerc=0.9f, f32 spherePerc=2.0f, f32 radius=1000.0f)
 Constructor (default).
 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 bool parseXML (IXMLReader *file, Entity *entity)
 Parses for a SkyDomeComponent.


Detailed Description

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

XML:

 <SkyDomeComponent hRes="" vRes="" texturePerc="" spherePerc="" radius="">
    <!-- Properties -->
 </SkyDomeComponent>

Definition at line 34 of file SkyDomeComponent.h.


Constructor & Destructor Documentation

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

Constructor (default).

Parameters:
parent The parent entity to which the component should be added.
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,
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 32 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 41 of file SkyDomeComponent.cpp.

SkyDomeComponent::~SkyDomeComponent (  ) 

Deconstructor.

Definition at line 50 of file SkyDomeComponent.cpp.


Member Function Documentation

bool SkyDomeComponent::parseXML ( IXMLReader *  file,
Entity entity 
) [static]

Parses for a SkyDomeComponent.

Note:
For internal use only!

Reimplemented from SceneComponent.

Definition at line 67 of file SkyDomeComponent.cpp.


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

Generated on Fri Aug 21 23:55:17 2009 for Sirrf - Simple Irrlicht Framework by  doxygen 1.5.8