diff options
author | David Walter Seikel | 2013-01-13 17:24:39 +1000 |
---|---|---|
committer | David Walter Seikel | 2013-01-13 17:24:39 +1000 |
commit | 393b5cd1dc438872af89d334ef6e5fcc59f27d47 (patch) | |
tree | 6a14521219942a08a1b95cb2f5a923a9edd60f63 /libraries/irrlicht-1.8/source/Irrlicht/CDummyTransformationSceneNode.h | |
parent | Add a note about rasters suggested start up code. (diff) | |
download | SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.zip SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.tar.gz SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.tar.bz2 SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.tar.xz |
Added Irrlicht 1.8, but without all the Windows binaries.
Diffstat (limited to '')
-rw-r--r-- | libraries/irrlicht-1.8/source/Irrlicht/CDummyTransformationSceneNode.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/CDummyTransformationSceneNode.h b/libraries/irrlicht-1.8/source/Irrlicht/CDummyTransformationSceneNode.h new file mode 100644 index 0000000..2ad2266 --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/CDummyTransformationSceneNode.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_DUMMY_TRANSFORMATION_SCENE_NODE_H_INCLUDED__ | ||
6 | #define __C_DUMMY_TRANSFORMATION_SCENE_NODE_H_INCLUDED__ | ||
7 | |||
8 | #include "IDummyTransformationSceneNode.h" | ||
9 | |||
10 | namespace irr | ||
11 | { | ||
12 | namespace scene | ||
13 | { | ||
14 | |||
15 | class CDummyTransformationSceneNode : public IDummyTransformationSceneNode | ||
16 | { | ||
17 | public: | ||
18 | |||
19 | //! constructor | ||
20 | CDummyTransformationSceneNode(ISceneNode* parent, ISceneManager* mgr, s32 id); | ||
21 | |||
22 | //! returns the axis aligned bounding box of this node | ||
23 | virtual const core::aabbox3d<f32>& getBoundingBox() const; | ||
24 | |||
25 | //! Returns a reference to the current relative transformation matrix. | ||
26 | //! This is the matrix, this scene node uses instead of scale, translation | ||
27 | //! and rotation. | ||
28 | virtual core::matrix4& getRelativeTransformationMatrix(); | ||
29 | |||
30 | //! Returns the relative transformation of the scene node. | ||
31 | virtual core::matrix4 getRelativeTransformation() const; | ||
32 | |||
33 | //! does nothing. | ||
34 | virtual void render() {} | ||
35 | |||
36 | //! Returns type of the scene node | ||
37 | virtual ESCENE_NODE_TYPE getType() const { return ESNT_DUMMY_TRANSFORMATION; } | ||
38 | |||
39 | //! Creates a clone of this scene node and its children. | ||
40 | virtual ISceneNode* clone(ISceneNode* newParent=0, ISceneManager* newManager=0); | ||
41 | |||
42 | |||
43 | private: | ||
44 | |||
45 | // TODO: We can add least add some warnings to find troubles faster until we have | ||
46 | // fixed bug id 2318691. | ||
47 | virtual const core::vector3df& getScale() const; | ||
48 | virtual void setScale(const core::vector3df& scale); | ||
49 | virtual const core::vector3df& getRotation() const; | ||
50 | virtual void setRotation(const core::vector3df& rotation); | ||
51 | virtual const core::vector3df& getPosition() const; | ||
52 | virtual void setPosition(const core::vector3df& newpos); | ||
53 | |||
54 | core::matrix4 RelativeTransformationMatrix; | ||
55 | core::aabbox3d<f32> Box; | ||
56 | }; | ||
57 | |||
58 | } // end namespace scene | ||
59 | } // end namespace irr | ||
60 | |||
61 | #endif | ||
62 | |||