aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/irrlicht-1.8/source/Irrlicht/CGUIInOutFader.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/CGUIInOutFader.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/CGUIInOutFader.h150
1 files changed, 75 insertions, 75 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/CGUIInOutFader.h b/libraries/irrlicht-1.8/source/Irrlicht/CGUIInOutFader.h
index 4bd6aa9..75893ed 100644
--- a/libraries/irrlicht-1.8/source/Irrlicht/CGUIInOutFader.h
+++ b/libraries/irrlicht-1.8/source/Irrlicht/CGUIInOutFader.h
@@ -1,75 +1,75 @@
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_GUI_IN_OUT_FADER_H_INCLUDED__ 5#ifndef __C_GUI_IN_OUT_FADER_H_INCLUDED__
6#define __C_GUI_IN_OUT_FADER_H_INCLUDED__ 6#define __C_GUI_IN_OUT_FADER_H_INCLUDED__
7 7
8#include "IrrCompileConfig.h" 8#include "IrrCompileConfig.h"
9#ifdef _IRR_COMPILE_WITH_GUI_ 9#ifdef _IRR_COMPILE_WITH_GUI_
10 10
11#include "IGUIInOutFader.h" 11#include "IGUIInOutFader.h"
12 12
13namespace irr 13namespace irr
14{ 14{
15namespace gui 15namespace gui
16{ 16{
17 17
18 class CGUIInOutFader : public IGUIInOutFader 18 class CGUIInOutFader : public IGUIInOutFader
19 { 19 {
20 public: 20 public:
21 21
22 //! constructor 22 //! constructor
23 CGUIInOutFader(IGUIEnvironment* environment, IGUIElement* parent, 23 CGUIInOutFader(IGUIEnvironment* environment, IGUIElement* parent,
24 s32 id, core::rect<s32> rectangle); 24 s32 id, core::rect<s32> rectangle);
25 25
26 //! draws the element and its children 26 //! draws the element and its children
27 virtual void draw(); 27 virtual void draw();
28 28
29 //! Gets the color to fade out to or to fade in from. 29 //! Gets the color to fade out to or to fade in from.
30 virtual video::SColor getColor() const; 30 virtual video::SColor getColor() const;
31 31
32 //! Sets the color to fade out to or to fade in from. 32 //! Sets the color to fade out to or to fade in from.
33 virtual void setColor(video::SColor color ); 33 virtual void setColor(video::SColor color );
34 virtual void setColor(video::SColor source, video::SColor dest); 34 virtual void setColor(video::SColor source, video::SColor dest);
35 35
36 //! Starts the fade in process. 36 //! Starts the fade in process.
37 virtual void fadeIn(u32 time); 37 virtual void fadeIn(u32 time);
38 38
39 //! Starts the fade out process. 39 //! Starts the fade out process.
40 virtual void fadeOut(u32 time); 40 virtual void fadeOut(u32 time);
41 41
42 //! Returns if the fade in or out process is done. 42 //! Returns if the fade in or out process is done.
43 virtual bool isReady() const; 43 virtual bool isReady() const;
44 44
45 //! Writes attributes of the element. 45 //! Writes attributes of the element.
46 virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options) const; 46 virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options) const;
47 47
48 //! Reads attributes of the element 48 //! Reads attributes of the element
49 virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options); 49 virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options);
50 50
51 private: 51 private:
52 52
53 enum EFadeAction 53 enum EFadeAction
54 { 54 {
55 EFA_NOTHING = 0, 55 EFA_NOTHING = 0,
56 EFA_FADE_IN, 56 EFA_FADE_IN,
57 EFA_FADE_OUT 57 EFA_FADE_OUT
58 }; 58 };
59 59
60 u32 StartTime; 60 u32 StartTime;
61 u32 EndTime; 61 u32 EndTime;
62 EFadeAction Action; 62 EFadeAction Action;
63 63
64 video::SColor Color[2]; 64 video::SColor Color[2];
65 video::SColor FullColor; 65 video::SColor FullColor;
66 video::SColor TransColor; 66 video::SColor TransColor;
67 }; 67 };
68 68
69} // end namespace gui 69} // end namespace gui
70} // end namespace irr 70} // end namespace irr
71 71
72#endif // _IRR_COMPILE_WITH_GUI_ 72#endif // _IRR_COMPILE_WITH_GUI_
73 73
74#endif // __C_GUI_IN_OUT_FADER_H_INCLUDED__ 74#endif // __C_GUI_IN_OUT_FADER_H_INCLUDED__
75 75