![]() |
Gamedev Framework (gf) 1.2.0
A C++17 framework for 2D games
|
Classes | |
| class | AnyActivity |
| An activity that can hold any other activity. More... | |
| class | ParallelActivityEx |
| A gf::ParallelActivity that holds its activities. More... | |
| class | RepeatActivityEx |
| A gf::RepeatActivity that holds its activity. More... | |
| class | SequenceActivityEx |
| A gf::SequenceActivity that holds its activities. More... | |
Functions | |
| ValueActivity | value (float origin, float target, float &value, Time duration, Easing easing=Ease::linear) |
| Create a gf::ValueActivity. More... | |
| RotateToActivity | rotateTo (float origin, float target, float &angle, Time duration, Easing easing=Ease::linear) |
| Create a gf::RotateToActivity. More... | |
| MoveToActivity | moveTo (Vector2f origin, Vector2f target, Vector2f &position, Time duration, Easing easing=Ease::linear) |
| Create a gf::MoveToActivity. More... | |
| ColorActivity | color (Color4f origin, Color4f target, Color4f &color, Time duration, Easing easing=Ease::linear) |
| Create a gf::ColorActivity. More... | |
| CallbackActivity | call (std::function< void()> callback) |
| Create a gf::CallbackActivity. More... | |
| DelayActivity | delay (Time duration) |
| Create a gf::DelayActivity. More... | |
| template<typename... Args> | |
| SequenceActivityEx< Args... > | sequence (Args... activities) |
| template<typename Other > | |
| RepeatActivityEx< Other > | repeat (Other activity, int repeat=0) |
| template<typename... Args> | |
| ParallelActivityEx< Args... > | parallelAny (Args... activities) |
| Create a gf::ParallelActivityEx. More... | |
| template<typename... Args> | |
| ParallelActivityEx< Args... > | parallelAll (Args... activities) |
| Create a gf::ParallelActivityEx. More... | |
The namespace for activity creation
|
inline |
Create a gf::CallbackActivity.
| callback | The function to call |
|
inline |
Create a gf::ColorActivity.
| origin | The origin value |
| target | The target value |
| color | A reference on the value |
| duration | The duration of the tween |
| easing | The easing for the interpolation |
|
inline |
Create a gf::DelayActivity.
| duration | The duration to wait for |
|
inline |
Create a gf::MoveToActivity.
| origin | The origin value |
| target | The target value |
| position | A reference on the value |
| duration | The duration of the tween |
| easing | The easing for the interpolation |
| ParallelActivityEx< Args... > gf::activity::parallelAll | ( | Args... | activities | ) |
Create a gf::ParallelActivityEx.
| activities | The activities in parallel |
| ParallelActivityEx< Args... > gf::activity::parallelAny | ( | Args... | activities | ) |
Create a gf::ParallelActivityEx.
| activities | The activities in parallel |
| RepeatActivityEx< Other > gf::activity::repeat | ( | Other | activity, |
| int | repeat = 0 |
||
| ) |
Create a gf::RepeatActivityEx.
| activity | The activity to repeat |
| repeat | The number of time to repeat the activity or 0 for infinite |
|
inline |
Create a gf::RotateToActivity.
| origin | The origin value |
| target | The target value |
| angle | A reference on the value |
| duration | The duration of the tween |
| easing | The easing for the interpolation |
| SequenceActivityEx< Args... > gf::activity::sequence | ( | Args... | activities | ) |
Create a gf::SequenceActivityEx.
| activities | The activities of the sequence |
|
inline |
Create a gf::ValueActivity.
| origin | The origin value |
| target | The target value |
| value | A reference on the value |
| duration | The duration of the tween |
| easing | The easing for the interpolation |