|
bool | setFrameRate (int frameRate_) override |
|
float | getFrameRate () const override |
| report the current frame rate, whether what was requested or the actual measured rate.
|
|
void | start () override |
| Called whenever we need to start timer callbacks flowing.
|
|
void | stop () override |
| Called whenever there are no more animations that need to be updated.
|
|
bool | isRunning () const override |
| Test to see if the timer is currently running.
|
|
| Controller (const Controller &)=delete |
|
Controller & | operator= (const Controller &)=delete |
|
| Controller (Controller &&)=delete |
|
Controller & | operator= (Controller &&)=delete |
|
void | setAnimator (Animator *animator_) |
|
virtual bool | setFrameRate (int) |
|
virtual float | getFrameRate () const |
| report the current frame rate, whether what was requested or the actual measured rate.
|
|
virtual void | start ()=0 |
| Called whenever we need to start timer callbacks flowing.
|
|
virtual void | stop ()=0 |
| Called whenever there are no more animations that need to be updated.
|
|
virtual bool | isRunning () const =0 |
| Test to see if the timer is currently running.
|
|
|
void | timerCallback () override |
|
|
int | frameRate { 30 } |
| Approx. frames/sec.
|
|
|
static juce::int64 | getCurrentTime () |
| Calculate the current time in milliseconds since some event, probably system start. Probably not accurate enough for e.g. musical purposes but more than accurate enough for visual animations.
|
|
Animator * | animator |
| the animator object that owns us.
|
|
◆ getFrameRate()
float friz::TimeController::getFrameRate |
( |
| ) |
const |
|
inlineoverridevirtual |
report the current frame rate, whether what was requested or the actual measured rate.
- Returns
- float
Reimplemented from friz::Controller.
◆ isRunning()
bool friz::TimeController::isRunning |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ setFrameRate()
bool friz::TimeController::setFrameRate |
( |
int |
| ) |
|
|
inlineoverridevirtual |
Set our frame rate to match that used in the animation we're controlling.
- Parameters
-
Reimplemented from friz::Controller.
◆ start()
void friz::TimeController::start |
( |
| ) |
|
|
inlineoverridevirtual |
Called whenever we need to start timer callbacks flowing.
Implements friz::Controller.
◆ stop()
void friz::TimeController::stop |
( |
| ) |
|
|
inlineoverridevirtual |
Called whenever there are no more animations that need to be updated.
Implements friz::Controller.
The documentation for this class was generated from the following files:
- Source/friz/control/controller.h
- Source/friz/control/controller.cpp