aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/irrlicht-1.8/source/Irrlicht/CWaterSurfaceSceneNode.h
diff options
context:
space:
mode:
authorDavid Walter Seikel2013-01-13 18:54:10 +1000
committerDavid Walter Seikel2013-01-13 18:54:10 +1000
commit959831f4ef5a3e797f576c3de08cd65032c997ad (patch)
treee7351908be5995f0b325b2ebeaa02d5a34b82583 /libraries/irrlicht-1.8/source/Irrlicht/CWaterSurfaceSceneNode.h
parentAdd info about changes to Irrlicht. (diff)
downloadSledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.zip
SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.gz
SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.bz2
SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.xz
Remove damned ancient DOS line endings from Irrlicht. Hopefully I did not go overboard.
Diffstat (limited to '')
-rw-r--r--libraries/irrlicht-1.8/source/Irrlicht/CWaterSurfaceSceneNode.h122
1 files changed, 61 insertions, 61 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/CWaterSurfaceSceneNode.h b/libraries/irrlicht-1.8/source/Irrlicht/CWaterSurfaceSceneNode.h
index f8ce2d0..3437b00 100644
--- a/libraries/irrlicht-1.8/source/Irrlicht/CWaterSurfaceSceneNode.h
+++ b/libraries/irrlicht-1.8/source/Irrlicht/CWaterSurfaceSceneNode.h
@@ -1,61 +1,61 @@
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_WATER_SURFACE_SCENE_NODE_H_INCLUDED__ 5#ifndef __C_WATER_SURFACE_SCENE_NODE_H_INCLUDED__
6#define __C_WATER_SURFACE_SCENE_NODE_H_INCLUDED__ 6#define __C_WATER_SURFACE_SCENE_NODE_H_INCLUDED__
7 7
8#include "CMeshSceneNode.h" 8#include "CMeshSceneNode.h"
9 9
10namespace irr 10namespace irr
11{ 11{
12namespace scene 12namespace scene
13{ 13{
14 14
15 class CWaterSurfaceSceneNode : public CMeshSceneNode 15 class CWaterSurfaceSceneNode : public CMeshSceneNode
16 { 16 {
17 public: 17 public:
18 18
19 //! constructor 19 //! constructor
20 CWaterSurfaceSceneNode(f32 waveHeight, f32 waveSpeed, f32 waveLength, 20 CWaterSurfaceSceneNode(f32 waveHeight, f32 waveSpeed, f32 waveLength,
21 IMesh* mesh, ISceneNode* parent, ISceneManager* mgr, s32 id, 21 IMesh* mesh, ISceneNode* parent, ISceneManager* mgr, s32 id,
22 const core::vector3df& position = core::vector3df(0,0,0), 22 const core::vector3df& position = core::vector3df(0,0,0),
23 const core::vector3df& rotation = core::vector3df(0,0,0), 23 const core::vector3df& rotation = core::vector3df(0,0,0),
24 const core::vector3df& scale = core::vector3df(1.0f, 1.0f, 1.0f)); 24 const core::vector3df& scale = core::vector3df(1.0f, 1.0f, 1.0f));
25 25
26 //! destructor 26 //! destructor
27 virtual ~CWaterSurfaceSceneNode(); 27 virtual ~CWaterSurfaceSceneNode();
28 28
29 //! frame registration 29 //! frame registration
30 virtual void OnRegisterSceneNode(); 30 virtual void OnRegisterSceneNode();
31 31
32 //! animated update 32 //! animated update
33 virtual void OnAnimate(u32 timeMs); 33 virtual void OnAnimate(u32 timeMs);
34 34
35 //! Update mesh 35 //! Update mesh
36 virtual void setMesh(IMesh* mesh); 36 virtual void setMesh(IMesh* mesh);
37 37
38 //! Returns type of the scene node 38 //! Returns type of the scene node
39 virtual ESCENE_NODE_TYPE getType() const { return ESNT_WATER_SURFACE; } 39 virtual ESCENE_NODE_TYPE getType() const { return ESNT_WATER_SURFACE; }
40 40
41 //! Writes attributes of the scene node. 41 //! Writes attributes of the scene node.
42 virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options) const; 42 virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options) const;
43 43
44 //! Reads attributes of the scene node. 44 //! Reads attributes of the scene node.
45 virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options); 45 virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options);
46 46
47 private: 47 private:
48 48
49 inline f32 addWave(const core::vector3df &source, f32 time) const; 49 inline f32 addWave(const core::vector3df &source, f32 time) const;
50 50
51 f32 WaveLength; 51 f32 WaveLength;
52 f32 WaveSpeed; 52 f32 WaveSpeed;
53 f32 WaveHeight; 53 f32 WaveHeight;
54 IMesh* OriginalMesh; 54 IMesh* OriginalMesh;
55 }; 55 };
56 56
57} // end namespace scene 57} // end namespace scene
58} // end namespace irr 58} // end namespace irr
59 59
60#endif 60#endif
61 61