|
Axmol 3.0.0-89d6d9a
|
A transition which peels back the bottom right hand corner of a scene to transition to the scene beneath it simulating a page turn. More...
#include <TransitionPageTurn.h>
Inherits TransitionScene.
Public Member Functions | |
| void | draw (const SceneRenderState &state, const Mat4 &transform, uint32_t flags) override |
| Override this method to draw your own node. | |
| bool | initWithDuration (float t, Scene *scene, bool backwards) |
| Creates a base transition with duration and incoming scene. | |
| ActionInterval * | actionWithSize (const Vec2 &vector) |
| Returns the action that will be performed with size. | |
| 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'. | |
| virtual | ~TransitionPageTurn () |
| @lua NA | |
| Public Member Functions inherited from TransitionScene | |
| 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 Public Member Functions | |
| static TransitionPageTurn * | create (float t, Scene *scene, bool backwards) |
| Creates a base transition with duration and incoming scene. | |
| Static Public Member Functions inherited from TransitionScene | |
| static TransitionScene * | create (float t, Scene *scene) |
| Creates a base transition with duration and incoming scene. | |
Additional Inherited Members | |
| Public Types inherited from TransitionScene | |
| enum class | Orientation { LEFT_OVER = 0 , RIGHT_OVER = 1 , UP_OVER = 0 , DOWN_OVER = 1 } |
| Orientation Type used by some transitions. More... | |
A transition which peels back the bottom right hand corner of a scene to transition to the scene beneath it simulating a page turn.
This uses a 3DAction so it's strongly recommended that depth buffering is turned on in Director using:
Director::getInstance()->setDepthBufferFormat(kDepthBuffer16);
|
static |
Creates a base transition with duration and incoming scene.
If back is true then the effect is reversed to appear as if the incoming scene is being turned from left over the outgoing scene.
| t | Duration time, in seconds. |
| scene | A given scene. |
| backwards | If back is true then the effect is reversed to appear as if the incoming scene is being turned from left over the outgoing scene. |
|
overridevirtual |
Override this method to draw your own node.
The following GL states will be enabled by default:
| state | A scene render traversal state. |
| transform | A transform matrix. |
| flags | Renderer flag. |
Reimplemented from Node.
| bool initWithDuration | ( | float | t, |
| Scene * | scene, | ||
| bool | backwards ) |
Creates a base transition with duration and incoming scene.
If back is true then the effect is reversed to appear as if the incoming scene is being turned from left over the outgoing scene.
| t | Duration time, in seconds. |
| scene | A given scene. |
| backwards | If back is true then the effect is reversed to appear as if the incoming scene is being turned from left over the outgoing scene. |
| ActionInterval * actionWithSize | ( | const Vec2 & | vector | ) |
Returns the action that will be performed with size.
| vector | A given size. |
|
overridevirtual |
Event callback that is invoked every time when Node enters the 'stage'.
If the Node enters the 'stage' with a transition, this event is called when the transition starts. During onEnter you can't access a "sister/brother" node. If you override onEnter, you shall call its parent's one, e.g., Node::onEnter(). @lua NA
Reimplemented from Node.
|
overridevirtual |
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.