aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/irrlicht-1.8.1/source/Irrlicht/CSkyBoxSceneNode.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/others/irrlicht-1.8.1/source/Irrlicht/CSkyBoxSceneNode.h')
-rw-r--r--src/others/irrlicht-1.8.1/source/Irrlicht/CSkyBoxSceneNode.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/src/others/irrlicht-1.8.1/source/Irrlicht/CSkyBoxSceneNode.h b/src/others/irrlicht-1.8.1/source/Irrlicht/CSkyBoxSceneNode.h
new file mode 100644
index 0000000..91580dc
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/source/Irrlicht/CSkyBoxSceneNode.h
@@ -0,0 +1,62 @@
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
5#ifndef __C_SKY_BOX_SCENE_NODE_H_INCLUDED__
6#define __C_SKY_BOX_SCENE_NODE_H_INCLUDED__
7
8#include "ISceneNode.h"
9#include "S3DVertex.h"
10
11namespace irr
12{
13namespace scene
14{
15
16 // Skybox, rendered with zbuffer turned off, before all other nodes.
17 class CSkyBoxSceneNode : public ISceneNode
18 {
19 public:
20
21 //! constructor
22 CSkyBoxSceneNode(video::ITexture* top, video::ITexture* bottom, video::ITexture* left,
23 video::ITexture* right, video::ITexture* front, video::ITexture* back,
24 ISceneNode* parent, ISceneManager* mgr, s32 id);
25
26 virtual void OnRegisterSceneNode();
27
28 //! renders the node.
29 virtual void render();
30
31 //! returns the axis aligned bounding box of this node
32 virtual const core::aabbox3d<f32>& getBoundingBox() const;
33
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().
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
38 //! to directly modify the material of a scene node.
39 virtual video::SMaterial& getMaterial(u32 i);
40
41 //! returns amount of materials used by this scene node.
42 virtual u32 getMaterialCount() const;
43
44 //! Returns type of the scene node
45 virtual ESCENE_NODE_TYPE getType() const { return ESNT_SKY_BOX; }
46
47 //! Creates a clone of this scene node and its children.
48 virtual ISceneNode* clone(ISceneNode* newParent=0, ISceneManager* newManager=0);
49
50 private:
51
52 core::aabbox3d<f32> Box;
53 u16 Indices[4];
54 video::S3DVertex Vertices[4*6];
55 video::SMaterial Material[6];
56 };
57
58} // end namespace scene
59} // end namespace irr
60
61#endif
62