| Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members |
#include <IGUIInOutFader.h>
Inheritance diagram for irr::gui::IGUIInOutFader:

Public Member Functions | |
| virtual void | fadeIn (u32 time)=0 |
| virtual void | fadeOut (u32 time)=0 |
| virtual video::SColor | getColor () const =0 |
| Gets the color to fade out to or to fade in from. | |
| IGUIInOutFader (IGUIEnvironment *environment, IGUIElement *parent, s32 id, core::rect< s32 > rectangle) | |
| constructor | |
| virtual bool | isReady () const =0 |
| Returns if the fade in or out process is done. | |
| virtual void | setColor (video::SColor source, video::SColor dest)=0 |
| virtual void | setColor (video::SColor color)=0 |
| virtual | ~IGUIInOutFader () |
| destructor | |
Here is a small example on how the class is used. In this example we fade in from a total red screen in the beginning. As you can see, the fader is not only useful for dramatic in and out fading, but also to show that the player is hit in a first person shooter game for example.
gui::IGUIInOutFader* fader = device->getGUIEnvironment()->addInOutFader();
fader->setColor(video::SColor(0,255,0,0));
fader->fadeIn(4000);
Definition at line 27 of file IGUIInOutFader.h.
|
||||||||||||||||||||
|
constructor
Definition at line 32 of file IGUIInOutFader.h. |
|
|
destructor
Definition at line 36 of file IGUIInOutFader.h. |
|
|
Starts the fade in process. In the beginning the whole rect is drawn by the set color (black by default) and at the end of the overgiven time the color has faded out.
|
|
|
Starts the fade out process. In the beginning everything is visible, and at the end of the time only the set color (black by the fault) will be drawn.
|
|
|
Gets the color to fade out to or to fade in from.
|
|
|
Returns if the fade in or out process is done.
|
|
||||||||||||
|
|
|
|
Sets the color to fade out to or to fade in from.
|
| The Irrlicht
Engine Documentation © 2003-2008 by Nikolaus Gebhardt. Generated
on Sun Jun 1 07:59:15 2008 by Doxygen
(1.4.2) |