~baltix/+junk/irrlicht-test

« back to all changes in this revision

Viewing changes to source/Irrlicht/CDummyTransformationSceneNode.h

  • Committer: Mantas Kriaučiūnas
  • Date: 2011-07-18 13:06:25 UTC
  • Revision ID: mantas@akl.lt-20110718130625-c5pvifp61e7kj1ol
Included whole irrlicht SVN libraries to work around launchpad recipe issue with quilt, see https://answers.launchpad.net/launchpad/+question/165193

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright (C) 2002-2011 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
                core::matrix4 RelativeTransformationMatrix;
 
46
                core::aabbox3d<f32> Box;
 
47
        };
 
48
 
 
49
} // end namespace scene
 
50
} // end namespace irr
 
51
 
 
52
#endif
 
53