diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/irrlicht-1.8/source/Irrlicht/CSkyDomeSceneNode.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/CSkyDomeSceneNode.h b/libraries/irrlicht-1.8/source/Irrlicht/CSkyDomeSceneNode.h new file mode 100644 index 0000000..9795b68 --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/CSkyDomeSceneNode.h | |||
@@ -0,0 +1,50 @@ | |||
1 | // Copyright (C) 2002-2012 Nikolaus Gebhardt | ||
2 | // This file is part of the "Irrlicht Engine". | ||
3 | // For conditions of distribution and use, see copyright notice in irrlicht.h | ||
4 | // Code for this scene node has been contributed by Anders la Cour-Harbo (alc) | ||
5 | |||
6 | #ifndef __C_SKY_DOME_SCENE_NODE_H_INCLUDED__ | ||
7 | #define __C_SKY_DOME_SCENE_NODE_H_INCLUDED__ | ||
8 | |||
9 | #include "ISceneNode.h" | ||
10 | #include "SMeshBuffer.h" | ||
11 | |||
12 | namespace irr | ||
13 | { | ||
14 | namespace scene | ||
15 | { | ||
16 | |||
17 | class CSkyDomeSceneNode : public ISceneNode | ||
18 | { | ||
19 | public: | ||
20 | CSkyDomeSceneNode(video::ITexture* texture, u32 horiRes, u32 vertRes, | ||
21 | f32 texturePercentage, f32 spherePercentage, f32 radius, | ||
22 | ISceneNode* parent, ISceneManager* smgr, s32 id); | ||
23 | virtual ~CSkyDomeSceneNode(); | ||
24 | virtual void OnRegisterSceneNode(); | ||
25 | virtual void render(); | ||
26 | virtual const core::aabbox3d<f32>& getBoundingBox() const; | ||
27 | virtual video::SMaterial& getMaterial(u32 i); | ||
28 | virtual u32 getMaterialCount() const; | ||
29 | virtual ESCENE_NODE_TYPE getType() const { return ESNT_SKY_DOME; } | ||
30 | |||
31 | virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options) const; | ||
32 | virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options); | ||
33 | virtual ISceneNode* clone(ISceneNode* newParent=0, ISceneManager* newManager=0); | ||
34 | |||
35 | private: | ||
36 | |||
37 | void generateMesh(); | ||
38 | |||
39 | SMeshBuffer* Buffer; | ||
40 | |||
41 | u32 HorizontalResolution, VerticalResolution; | ||
42 | f32 TexturePercentage, SpherePercentage, Radius; | ||
43 | }; | ||
44 | |||
45 | |||
46 | } | ||
47 | } | ||
48 | |||
49 | #endif | ||
50 | |||