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. |
XML:
<SkyDomeComponent hRes="" vRes="" texturePerc="" spherePerc="" radius=""> <!-- Properties --> </SkyDomeComponent>
Definition at line 34 of file SkyDomeComponent.h.
SkyDomeComponent::SkyDomeComponent | ( | Entity * | parent, | |
u32 | hRes = 16 , |
|||
u32 | vRes = 8 , |
|||
f32 | texturePerc = 0.9f , |
|||
f32 | spherePerc = 2.0f , |
|||
f32 | radius = 1000.0f | |||
) |
Constructor (default).
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.
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.
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 | ( | ) |
bool SkyDomeComponent::parseXML | ( | IXMLReader * | file, | |
Entity * | entity | |||
) | [static] |
Parses for a SkyDomeComponent.
Reimplemented from SceneComponent.
Definition at line 67 of file SkyDomeComponent.cpp.