Loading [MathJax]/jax/output/HTML-CSS/config.js

⚠️ This documentation corresponds to the latest development branch of axmol. It might diverge from the official releases.

 
Axmol Engine 2.4.0-ce063c5
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Modules Pages
Loading...
Searching...
No Matches
ScaleBy Class Reference

Scales a Node object a zoom factor by modifying it's scale attribute. More...

#include <ActionInterval.h>

Inherits ScaleTo.

Static Public Member Functions

static ScaleBycreate (float duration, float s)
 Creates the action with the same scale factor for X and Y.
 
static ScaleBycreate (float duration, float sx, float sy)
 Creates the action with and X factor and a Y factor.
 
static ScaleBycreate (float duration, float sx, float sy, float sz)
 Creates the action with X Y Z factor.
 
- Static Public Member Functions inherited from ScaleTo
static ScaleTocreate (float duration, float s)
 Creates the action with the same scale factor for X and Y.
 
static ScaleTocreate (float duration, float sx, float sy)
 Creates the action with and X factor and a Y factor.
 
static ScaleTocreate (float duration, float sx, float sy, float sz)
 Creates the action with X Y Z factor.
 

Additional Inherited Members

- Public Member Functions inherited from ScaleTo
virtual void update (float time) override
 
bool initWithDuration (float duration, float s)
 initializes the action with the same scale factor for X and Y
 
bool initWithDuration (float duration, float sx, float sy)
 initializes the action with and X factor and a Y factor
 
bool initWithDuration (float duration, float sx, float sy, float sz)
 initializes the action with X Y Z factor
 
- Public Member Functions inherited from ActionInterval
float getElapsed ()
 How many seconds had elapsed since the actions started to run.
 
void setAmplitudeRate (float amp)
 Sets the amplitude rate, extension in GridAction.
 
float getAmplitudeRate ()
 Gets the amplitude rate, extension in GridAction.
 
virtual void step (float dt) override
 
bool initWithDuration (float d)
 initializes the action
 

Detailed Description

Scales a Node object a zoom factor by modifying it's scale attribute.

Warning
The physics body contained in Node doesn't support this action.

Member Function Documentation

◆ create() [1/3]

static ScaleBy * create ( float duration,
float s )
static

Creates the action with the same scale factor for X and Y.

Parameters
durationDuration time, in seconds.
sScale factor of x and y.
Returns
An autoreleased ScaleBy object.

◆ create() [2/3]

static ScaleBy * create ( float duration,
float sx,
float sy )
static

Creates the action with and X factor and a Y factor.

Parameters
durationDuration time, in seconds.
sxScale factor of x.
syScale factor of y.
Returns
An autoreleased ScaleBy object.

◆ create() [3/3]

static ScaleBy * create ( float duration,
float sx,
float sy,
float sz )
static

Creates the action with X Y Z factor.

Parameters
durationDuration time, in seconds.
sxScale factor of x.
syScale factor of y.
szScale factor of z.
Returns
An autoreleased ScaleBy object.

The documentation for this class was generated from the following file: