00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef __SKYDOMECOMPONENT_H__
00017 #define __SKYDOMECOMPONENT_H__
00018
00019
00020 #include "../../dependencies.h"
00021 #include "SceneComponent.h"
00022
00023
00024
00034 class SkyDomeComponent : public SceneComponent
00035 {
00036 public:
00037
00038
00048 SkyDomeComponent(Entity *parent, u32 hRes = 16, u32 vRes = 8, f32 texturePerc = 0.9f,
00049 f32 spherePerc = 2.0f, f32 radius = 1000.0f);
00060 SkyDomeComponent(Entity *parent, const std::string &fileName, u32 hRes = 16, u32 vRes = 8,
00061 f32 texturePerc = 0.9f, f32 spherePerc = 2.0f, f32 radius = 1000.0f);
00072 SkyDomeComponent(Entity *parent, ITexture *texture, u32 hRes = 16, u32 vRes = 8,
00073 f32 texturePerc = 0.9f, f32 spherePerc = 2.0f, f32 radius = 1000.0f);
00075 ~SkyDomeComponent();
00076
00077
00080 static bool parseXML(IXMLReader *file, Entity *entity);
00081
00082 private:
00083
00085 void init(u32 hRes, u32 vRes, f32 texturePerc, f32 spherePerc, f32 radius);
00086 };
00087
00088 #endif