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 SkyDomeComponent * | refFactory (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. |
Definition at line 26 of file SkyDomeComponent.h.
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 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.
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 | ( | ) |
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.
Definition at line 64 of file SkyDomeComponent.cpp.