TransitionFadeTR: Fade the tiles of the outgoing scene from the left-bottom corner the to top-right corner.
More...
#include <Transition.h>
Inherits TransitionScene, and TransitionEaseScene.
Inherited by TransitionFadeBL, TransitionFadeDown, and TransitionFadeUp.
|
| virtual ActionInterval * | actionWithSize (const Vec2 &size) |
| | Returns the action that will be performed with size.
|
|
void | onEnter () override |
| | @lua NA
|
| ActionInterval * | easeActionWithAction (ActionInterval *action) override |
| | Returns the Ease action that will be performed on a linear action.
|
| void | onExit () override |
| | Event callback that is invoked every time the Node leaves the 'stage'.
|
| void | draw (const SceneRenderState &state, const Mat4 &transform, uint32_t flags) override |
| | Override this method to draw your own node.
|
|
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
|
|
virtual | ~TransitionEaseScene () |
| | Constructor.
|
|
| static TransitionFadeTR * | create (float t, Scene *scene) |
| | Creates a transition with duration and incoming scene.
|
| static TransitionScene * | create (float t, Scene *scene) |
| | Creates a base transition with duration and incoming scene.
|
TransitionFadeTR: Fade the tiles of the outgoing scene from the left-bottom corner the to top-right corner.
◆ create()
| TransitionFadeTR * create |
( |
float | t, |
|
|
Scene * | scene ) |
|
static |
Creates a transition with duration and incoming scene.
- Parameters
-
| t | Duration time, in seconds. |
| scene | A given scene. |
- Returns
- A autoreleased TransitionFadeTR object.
◆ actionWithSize()
◆ easeActionWithAction()
Returns the Ease action that will be performed on a linear action.
- Since
- v0.8.2
- Parameters
-
| action | A given interval action. |
- Returns
- The Ease action that will be performed on a linear action.
Implements TransitionEaseScene.
◆ onExit()
Event callback that is invoked every time the Node leaves the 'stage'.
If the Node leaves the 'stage' with a transition, this event is called when the transition finishes. During onExit you can't access a sibling node. If you override onExit, you shall call its parent's one, e.g., Node::onExit(). @lua NA
Reimplemented from Node.
◆ draw()
| void draw |
( |
const SceneRenderState & | state, |
|
|
const Mat4 & | transform, |
|
|
uint32_t | flags ) |
|
overridevirtual |
Override this method to draw your own node.
The following GL states will be enabled by default:
- glEnableClientState(GL_VERTEX_ARRAY);
- glEnableClientState(GL_COLOR_ARRAY);
- glEnableClientState(GL_TEXTURE_COORD_ARRAY);
- glEnable(GL_TEXTURE_2D); AND YOU SHOULD NOT DISABLE THEM AFTER DRAWING YOUR NODE But if you enable any other GL state, you should disable it after drawing your node.
- Parameters
-
| state | A scene render traversal state. |
| transform | A transform matrix. |
| flags | Renderer flag. |
Reimplemented from Node.
The documentation for this class was generated from the following file: