Drives timed frame updates on top of a GraphicsContext.
More...
#include <isf15acp4_animator.hpp>
|
| | Animator (GraphicsContext &gfx, AnimationFrameFn fn, void *user_data=nullptr, uint32_t fps=30) noexcept |
| |
| bool | Tick (uint32_t elapsed_ms) noexcept |
| | Advance animation clock and invoke frame callback when due.
|
| |
| void | RenderNow () noexcept |
| | Force immediate frame render.
|
| |
| void | SetFps (uint32_t fps) noexcept |
| |
| void | Reset () noexcept |
| |
| uint32_t | Frame () const noexcept |
| |
Drives timed frame updates on top of a GraphicsContext.
◆ Animator()
◆ Frame()
| uint32_t isf15acp4::Animator::Frame |
( |
| ) |
const |
|
inlinenoexcept |
◆ RenderNow()
| void isf15acp4::Animator::RenderNow |
( |
| ) |
|
|
inlinenoexcept |
Force immediate frame render.
◆ Reset()
| void isf15acp4::Animator::Reset |
( |
| ) |
|
|
inlinenoexcept |
◆ SetFps()
| void isf15acp4::Animator::SetFps |
( |
uint32_t |
fps | ) |
|
|
inlinenoexcept |
◆ Tick()
| bool isf15acp4::Animator::Tick |
( |
uint32_t |
elapsed_ms | ) |
|
|
inlinenoexcept |
Advance animation clock and invoke frame callback when due.
◆ elapsed_accum_
| uint32_t isf15acp4::Animator::elapsed_accum_ {0} |
|
private |
◆ frame_
| uint32_t isf15acp4::Animator::frame_ {0} |
|
private |
◆ frame_fn_
◆ frame_ms_
| uint32_t isf15acp4::Animator::frame_ms_ {33} |
|
private |
◆ gfx_
◆ user_data_
| void* isf15acp4::Animator::user_data_ |
|
private |
The documentation for this class was generated from the following files: