diff options
author | David Walter Seikel | 2013-01-13 18:54:10 +1000 |
---|---|---|
committer | David Walter Seikel | 2013-01-13 18:54:10 +1000 |
commit | 959831f4ef5a3e797f576c3de08cd65032c997ad (patch) | |
tree | e7351908be5995f0b325b2ebeaa02d5a34b82583 /libraries/irrlicht-1.8/source/Irrlicht/CVolumeLightSceneNode.h | |
parent | Add info about changes to Irrlicht. (diff) | |
download | SledjHamr-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/CVolumeLightSceneNode.h | 186 |
1 files changed, 93 insertions, 93 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/CVolumeLightSceneNode.h b/libraries/irrlicht-1.8/source/Irrlicht/CVolumeLightSceneNode.h index 7ee9e3c..d29c9d6 100644 --- a/libraries/irrlicht-1.8/source/Irrlicht/CVolumeLightSceneNode.h +++ b/libraries/irrlicht-1.8/source/Irrlicht/CVolumeLightSceneNode.h | |||
@@ -1,93 +1,93 @@ | |||
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 | // created by Dean Wadsworth aka Varmint Dec 31 2007 | 5 | // created by Dean Wadsworth aka Varmint Dec 31 2007 |
6 | 6 | ||
7 | #ifndef __VOLUME_LIGHT_SCENE_NODE_H_INCLUDED__ | 7 | #ifndef __VOLUME_LIGHT_SCENE_NODE_H_INCLUDED__ |
8 | #define __VOLUME_LIGHT_SCENE_NODE_H_INCLUDED__ | 8 | #define __VOLUME_LIGHT_SCENE_NODE_H_INCLUDED__ |
9 | 9 | ||
10 | #include "IVolumeLightSceneNode.h" | 10 | #include "IVolumeLightSceneNode.h" |
11 | #include "IMesh.h" | 11 | #include "IMesh.h" |
12 | 12 | ||
13 | namespace irr | 13 | namespace irr |
14 | { | 14 | { |
15 | namespace scene | 15 | namespace scene |
16 | { | 16 | { |
17 | class CVolumeLightSceneNode : public IVolumeLightSceneNode | 17 | class CVolumeLightSceneNode : public IVolumeLightSceneNode |
18 | { | 18 | { |
19 | public: | 19 | public: |
20 | 20 | ||
21 | //! constructor | 21 | //! constructor |
22 | CVolumeLightSceneNode(ISceneNode* parent, ISceneManager* mgr, s32 id, | 22 | CVolumeLightSceneNode(ISceneNode* parent, ISceneManager* mgr, s32 id, |
23 | const u32 subdivU = 32, const u32 subdivV = 32, | 23 | const u32 subdivU = 32, const u32 subdivV = 32, |
24 | const video::SColor foot = video::SColor(51, 0, 230, 180), | 24 | const video::SColor foot = video::SColor(51, 0, 230, 180), |
25 | const video::SColor tail = video::SColor(0, 0, 0, 0), | 25 | const video::SColor tail = video::SColor(0, 0, 0, 0), |
26 | const core::vector3df& position = core::vector3df(0,0,0), | 26 | const core::vector3df& position = core::vector3df(0,0,0), |
27 | const core::vector3df& rotation = core::vector3df(0,0,0), | 27 | const core::vector3df& rotation = core::vector3df(0,0,0), |
28 | const core::vector3df& scale = core::vector3df(1.0f, 1.0f, 1.0f)); | 28 | const core::vector3df& scale = core::vector3df(1.0f, 1.0f, 1.0f)); |
29 | 29 | ||
30 | virtual ~CVolumeLightSceneNode(); | 30 | virtual ~CVolumeLightSceneNode(); |
31 | 31 | ||
32 | virtual void OnRegisterSceneNode(); | 32 | virtual void OnRegisterSceneNode(); |
33 | 33 | ||
34 | //! renders the node. | 34 | //! renders the node. |
35 | virtual void render(); | 35 | virtual void render(); |
36 | 36 | ||
37 | //! returns the axis aligned bounding box of this node | 37 | //! returns the axis aligned bounding box of this node |
38 | virtual const core::aabbox3d<f32>& getBoundingBox() const; | 38 | virtual const core::aabbox3d<f32>& getBoundingBox() const; |
39 | 39 | ||
40 | //! returns the material based on the zero based index i. | 40 | //! returns the material based on the zero based index i. |
41 | virtual video::SMaterial& getMaterial(u32 i); | 41 | virtual video::SMaterial& getMaterial(u32 i); |
42 | 42 | ||
43 | //! returns amount of materials used by this scene node. | 43 | //! returns amount of materials used by this scene node. |
44 | virtual u32 getMaterialCount() const; | 44 | virtual u32 getMaterialCount() const; |
45 | 45 | ||
46 | //! Returns type of the scene node | 46 | //! Returns type of the scene node |
47 | virtual ESCENE_NODE_TYPE getType() const { return ESNT_VOLUME_LIGHT; } | 47 | virtual ESCENE_NODE_TYPE getType() const { return ESNT_VOLUME_LIGHT; } |
48 | 48 | ||
49 | //! Writes attributes of the scene node. | 49 | //! Writes attributes of the scene node. |
50 | virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options=0) const; | 50 | virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options=0) const; |
51 | 51 | ||
52 | //! Reads attributes of the scene node. | 52 | //! Reads attributes of the scene node. |
53 | virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options=0); | 53 | virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options=0); |
54 | 54 | ||
55 | //! Creates a clone of this scene node and its children. | 55 | //! Creates a clone of this scene node and its children. |
56 | virtual ISceneNode* clone(ISceneNode* newParent=0, ISceneManager* newManager=0); | 56 | virtual ISceneNode* clone(ISceneNode* newParent=0, ISceneManager* newManager=0); |
57 | 57 | ||
58 | virtual void setSubDivideU(const u32 inU); | 58 | virtual void setSubDivideU(const u32 inU); |
59 | virtual void setSubDivideV(const u32 inV); | 59 | virtual void setSubDivideV(const u32 inV); |
60 | 60 | ||
61 | virtual u32 getSubDivideU() const { return SubdivideU; } | 61 | virtual u32 getSubDivideU() const { return SubdivideU; } |
62 | virtual u32 getSubDivideV() const { return SubdivideV; } | 62 | virtual u32 getSubDivideV() const { return SubdivideV; } |
63 | 63 | ||
64 | virtual void setFootColor(const video::SColor inColor); | 64 | virtual void setFootColor(const video::SColor inColor); |
65 | virtual void setTailColor(const video::SColor inColor); | 65 | virtual void setTailColor(const video::SColor inColor); |
66 | 66 | ||
67 | virtual video::SColor getFootColor() const { return FootColor; } | 67 | virtual video::SColor getFootColor() const { return FootColor; } |
68 | virtual video::SColor getTailColor() const { return TailColor; } | 68 | virtual video::SColor getTailColor() const { return TailColor; } |
69 | 69 | ||
70 | private: | 70 | private: |
71 | void constructLight(); | 71 | void constructLight(); |
72 | 72 | ||
73 | IMesh* Mesh; | 73 | IMesh* Mesh; |
74 | 74 | ||
75 | f32 LPDistance; // Distance to hypothetical lightsource point -- affects fov angle | 75 | f32 LPDistance; // Distance to hypothetical lightsource point -- affects fov angle |
76 | 76 | ||
77 | u32 SubdivideU; // Number of subdivisions in U and V space. | 77 | u32 SubdivideU; // Number of subdivisions in U and V space. |
78 | u32 SubdivideV; // Controls the number of "slices" in the volume. | 78 | u32 SubdivideV; // Controls the number of "slices" in the volume. |
79 | // NOTE : Total number of polygons = 2 + ((SubdivideU + 1) + (SubdivideV + 1)) * 2 | 79 | // NOTE : Total number of polygons = 2 + ((SubdivideU + 1) + (SubdivideV + 1)) * 2 |
80 | // Each slice being a quad plus the rectangular plane at the bottom. | 80 | // Each slice being a quad plus the rectangular plane at the bottom. |
81 | 81 | ||
82 | video::SColor FootColor; // Color at the source | 82 | video::SColor FootColor; // Color at the source |
83 | video::SColor TailColor; // Color at the end. | 83 | video::SColor TailColor; // Color at the end. |
84 | 84 | ||
85 | core::vector3df LightDimensions; // LightDimensions.Y Distance of shooting -- Length of beams | 85 | core::vector3df LightDimensions; // LightDimensions.Y Distance of shooting -- Length of beams |
86 | // LightDimensions.X and LightDimensions.Z determine the size/dimension of the plane | 86 | // LightDimensions.X and LightDimensions.Z determine the size/dimension of the plane |
87 | }; | 87 | }; |
88 | 88 | ||
89 | } // end namespace scene | 89 | } // end namespace scene |
90 | } // end namespace irr | 90 | } // end namespace irr |
91 | 91 | ||
92 | #endif | 92 | #endif |
93 | 93 | ||