diff options
Diffstat (limited to 'libraries/irrlicht-1.8/source/Irrlicht/CSkyBoxSceneNode.h')
-rw-r--r-- | libraries/irrlicht-1.8/source/Irrlicht/CSkyBoxSceneNode.h | 124 |
1 files changed, 62 insertions, 62 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/CSkyBoxSceneNode.h b/libraries/irrlicht-1.8/source/Irrlicht/CSkyBoxSceneNode.h index 91580dc..9173fda 100644 --- a/libraries/irrlicht-1.8/source/Irrlicht/CSkyBoxSceneNode.h +++ b/libraries/irrlicht-1.8/source/Irrlicht/CSkyBoxSceneNode.h | |||
@@ -1,62 +1,62 @@ | |||
1 | // Copyright (C) 2002-2012 Nikolaus Gebhardt | 1 | // Copyright (C) 2002-2012 Nikolaus Gebhardt |
2 | // This file is part of the "Irrlicht Engine". | 2 | // This file is part of the "Irrlicht Engine". |
3 | // For conditions of distribution and use, see copyright notice in irrlicht.h | 3 | // For conditions of distribution and use, see copyright notice in irrlicht.h |
4 | 4 | ||
5 | #ifndef __C_SKY_BOX_SCENE_NODE_H_INCLUDED__ | 5 | #ifndef __C_SKY_BOX_SCENE_NODE_H_INCLUDED__ |
6 | #define __C_SKY_BOX_SCENE_NODE_H_INCLUDED__ | 6 | #define __C_SKY_BOX_SCENE_NODE_H_INCLUDED__ |
7 | 7 | ||
8 | #include "ISceneNode.h" | 8 | #include "ISceneNode.h" |
9 | #include "S3DVertex.h" | 9 | #include "S3DVertex.h" |
10 | 10 | ||
11 | namespace irr | 11 | namespace irr |
12 | { | 12 | { |
13 | namespace scene | 13 | namespace scene |
14 | { | 14 | { |
15 | 15 | ||
16 | // Skybox, rendered with zbuffer turned off, before all other nodes. | 16 | // Skybox, rendered with zbuffer turned off, before all other nodes. |
17 | class CSkyBoxSceneNode : public ISceneNode | 17 | class CSkyBoxSceneNode : public ISceneNode |
18 | { | 18 | { |
19 | public: | 19 | public: |
20 | 20 | ||
21 | //! constructor | 21 | //! constructor |
22 | CSkyBoxSceneNode(video::ITexture* top, video::ITexture* bottom, video::ITexture* left, | 22 | CSkyBoxSceneNode(video::ITexture* top, video::ITexture* bottom, video::ITexture* left, |
23 | video::ITexture* right, video::ITexture* front, video::ITexture* back, | 23 | video::ITexture* right, video::ITexture* front, video::ITexture* back, |
24 | ISceneNode* parent, ISceneManager* mgr, s32 id); | 24 | ISceneNode* parent, ISceneManager* mgr, s32 id); |
25 | 25 | ||
26 | virtual void OnRegisterSceneNode(); | 26 | virtual void OnRegisterSceneNode(); |
27 | 27 | ||
28 | //! renders the node. | 28 | //! renders the node. |
29 | virtual void render(); | 29 | virtual void render(); |
30 | 30 | ||
31 | //! returns the axis aligned bounding box of this node | 31 | //! returns the axis aligned bounding box of this node |
32 | virtual const core::aabbox3d<f32>& getBoundingBox() const; | 32 | virtual const core::aabbox3d<f32>& getBoundingBox() const; |
33 | 33 | ||
34 | //! returns the material based on the zero based index i. To get the amount | 34 | //! returns the material based on the zero based index i. To get the amount |
35 | //! of materials used by this scene node, use getMaterialCount(). | 35 | //! of materials used by this scene node, use getMaterialCount(). |
36 | //! This function is needed for inserting the node into the scene hirachy on a | 36 | //! This function is needed for inserting the node into the scene hirachy on a |
37 | //! optimal position for minimizing renderstate changes, but can also be used | 37 | //! optimal position for minimizing renderstate changes, but can also be used |
38 | //! to directly modify the material of a scene node. | 38 | //! to directly modify the material of a scene node. |
39 | virtual video::SMaterial& getMaterial(u32 i); | 39 | virtual video::SMaterial& getMaterial(u32 i); |
40 | 40 | ||
41 | //! returns amount of materials used by this scene node. | 41 | //! returns amount of materials used by this scene node. |
42 | virtual u32 getMaterialCount() const; | 42 | virtual u32 getMaterialCount() const; |
43 | 43 | ||
44 | //! Returns type of the scene node | 44 | //! Returns type of the scene node |
45 | virtual ESCENE_NODE_TYPE getType() const { return ESNT_SKY_BOX; } | 45 | virtual ESCENE_NODE_TYPE getType() const { return ESNT_SKY_BOX; } |
46 | 46 | ||
47 | //! Creates a clone of this scene node and its children. | 47 | //! Creates a clone of this scene node and its children. |
48 | virtual ISceneNode* clone(ISceneNode* newParent=0, ISceneManager* newManager=0); | 48 | virtual ISceneNode* clone(ISceneNode* newParent=0, ISceneManager* newManager=0); |
49 | 49 | ||
50 | private: | 50 | private: |
51 | 51 | ||
52 | core::aabbox3d<f32> Box; | 52 | core::aabbox3d<f32> Box; |
53 | u16 Indices[4]; | 53 | u16 Indices[4]; |
54 | video::S3DVertex Vertices[4*6]; | 54 | video::S3DVertex Vertices[4*6]; |
55 | video::SMaterial Material[6]; | 55 | video::SMaterial Material[6]; |
56 | }; | 56 | }; |
57 | 57 | ||
58 | } // end namespace scene | 58 | } // end namespace scene |
59 | } // end namespace irr | 59 | } // end namespace irr |
60 | 60 | ||
61 | #endif | 61 | #endif |
62 | 62 | ||