TransitionFade: Fade out the outgoing scene and then fade in the incoming scene.
More...
#include <Transition.h>
Inherits TransitionScene.
|
|
void | onEnter () override |
| | @lua NA
|
|
void | onExit () override |
| | @lua NA
|
|
bool | initWithDuration (float t, Scene *scene, const Color32 &color) |
| | initializes the transition with a duration and with an RGBA color
|
|
void | finish () |
| | Called after a transition finishes.
|
|
void | hideOutShowIn () |
| | Used by some transitions to hide the outer scene.
|
| void | draw (const SceneRenderState &state, const Mat4 &transform, uint32_t flags) override |
| | Override this method to draw your own node.
|
| void | onEnter () override |
| | Event callback that is invoked every time when Node enters the 'stage'.
|
| void | onExit () override |
| | Event callback that is invoked every time the Node leaves the 'stage'.
|
|
void | cleanup () override |
| | Stops all running actions and schedulers.
|
|
bool | initWithDuration (float t, Scene *scene) |
| | initializes a transition with duration and incoming scene
|
|
| static TransitionFade * | create (float duration, Scene *scene, const Color32 &color) |
| | Creates the transition with a duration and with an RGB color Example: FadeTransition::create(2, scene, Color32(255,0,0,255); // red color.
|
| static TransitionFade * | create (float duration, Scene *scene) |
| | Creates the transition with a duration.
|
| static TransitionScene * | create (float t, Scene *scene) |
| | Creates a base transition with duration and incoming scene.
|
TransitionFade: Fade out the outgoing scene and then fade in the incoming scene.
'''
◆ create() [1/2]
| TransitionFade * create |
( |
float | duration, |
|
|
Scene * | scene, |
|
|
const Color32 & | color ) |
|
static |
Creates the transition with a duration and with an RGB color Example: FadeTransition::create(2, scene, Color32(255,0,0,255); // red color.
- Parameters
-
| duration | Duration time, in seconds. |
| scene | A given scene. |
| color | A given transition color. |
- Returns
- A autoreleased TransitionFade object.
◆ create() [2/2]
| TransitionFade * create |
( |
float | duration, |
|
|
Scene * | scene ) |
|
static |
Creates the transition with a duration.
- Parameters
-
| duration | Duration time, in seconds. |
| scene | A given scene. |
- Returns
- A autoreleased TransitionFade object.
The documentation for this class was generated from the following file: