A transition between two scenes.
More...
#include <gf/Segue.h>
A transition between two scenes.
- See also
- Segue - Wikipedia
◆ Segue()
◆ draw()
Draw the object to a render target.
This is a pure virtual function that has to be implemented by the derived class to define how the drawable should be drawn.
- Parameters
-
target | Render target to draw to |
states | Current render states |
Implements gf::Drawable.
◆ isActive()
bool gf::Segue::isActive |
( |
| ) |
|
|
inline |
Tell if the segue is still active.
- Returns
- True if the segue is not finished
◆ setEasing()
void gf::Segue::setEasing |
( |
Easing |
easing | ) |
|
|
inline |
Set the easing for the segue.
- Parameters
-
◆ setEffect()
Set the effect to apply.
- Parameters
-
effect | The post-processing effect |
◆ setTextures()
void gf::Segue::setTextures |
( |
const Texture & |
texture0, |
|
|
const Texture & |
texture1 |
|
) |
| |
Set the two texture for the segue.
- Parameters
-
texture0 | The old scene |
texture1 | The new scene |
◆ start()
void gf::Segue::start |
( |
Time |
time | ) |
|
Start the segue for a specified time.
- Parameters
-
time | The time of the segue |
◆ stop()
◆ update()
void gf::Segue::update |
( |
Time |
time | ) |
|
Update the segue.
- Parameters
-
time | The time since the last update |