|
stmm-games-doc
0.32.0
|
Classes | |
| struct | DynImage |
Public Member Functions | |
| DynAnimation () noexcept | |
| Constructor. More... | |
| void | addImage (int32_t nNaturalDuration, shared_ptr< Image > &refImage, double fRelX, double fRelY, double fRelW, double fRelH, int32_t nPriority) noexcept |
| Add an image. More... | |
| void | addImage (int32_t nNaturalDuration, shared_ptr< Image > &refImage, FRect oRelRect, int32_t nPriority) noexcept |
| Add an image. More... | |
| void | addImage (int32_t nNaturalDuration, DynImage &&oDynImage) noexcept |
| Add an image. More... | |
| const DynImage & | getImage (double fElapsed) noexcept |
| Get the image data at a certain unary time of the animation. More... | |
| int32_t | getImageIdx (double fElapsed) noexcept |
| The image index at a certain unary time of the animation. More... | |
| int32_t | getNaturalDuration () const noexcept |
| The natural duration of the whole animation in milliseconds. More... | |
| int32_t | getTotImages () const noexcept |
| The number of images. More... | |
| const DynImage & | getImageByIdx (int32_t nIdx) noexcept |
| Get image data by index. More... | |
|
noexcept |
Constructor.
|
noexcept |
Add an image.
See addImage(int32_t nNaturalDuration, DynImage&& oDynImage).
|
noexcept |
Add an image.
See addImage(int32_t nNaturalDuration, DynImage&& oDynImage).
|
noexcept |
Add an image.
The natural duration can also e interpreted as weight if the duration of the animation is determined by the model.
When an animation can't paint all the images because the frame rate is too low, it chooses the one with the highest priority.
| nNaturalDuration | The duration in milliseconds in the animation. Must be positive. |
| oDynImage | The image data. |
|
noexcept |
Get the image data at a certain unary time of the animation.
Elapsed value 0.0 is start, 1.0 is end of animation.
| fElapsed | The unary time. Must be >= 0.0 and <= 1.0. |
|
noexcept |
Get image data by index.
| nIdx | The index. Must be >= 0 and < getTotImages(). |
|
noexcept |
The image index at a certain unary time of the animation.
Elapsed value 0.0 is start, 1.0 is end of animation.
| fElapsed | The unary time. Must be >= 0.0 and <= 1.0. |
|
noexcept |
The natural duration of the whole animation in milliseconds.
|
noexcept |
The number of images.
1.8.13