|
|
|
|
@ -62,8 +62,8 @@ Example usage:
|
|
|
|
|
MyApplication::MyApplication(const Parameters& parameters): Platform::Application(parameters) { |
|
|
|
|
// Initialization ...
|
|
|
|
|
|
|
|
|
|
timeline.setMinimalFrameTime(1/120.0f); // 120 FPS at max
|
|
|
|
|
timeline.start(); |
|
|
|
|
timeline.setMinimalFrameTime(1/120.0f) // 120 FPS at max
|
|
|
|
|
->start(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void MyApplication::drawEvent() { |
|
|
|
|
@ -93,12 +93,14 @@ class MAGNUM_EXPORT Timeline {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Set minimal frame time |
|
|
|
|
* @return Pointer to self (for method chaining) |
|
|
|
|
* |
|
|
|
|
* Default value is 0. |
|
|
|
|
* @see nextFrame() |
|
|
|
|
*/ |
|
|
|
|
inline void setMinimalFrameTime(Float seconds) { |
|
|
|
|
inline Timeline* setMinimalFrameTime(Float seconds) { |
|
|
|
|
_minimalFrameTime = seconds; |
|
|
|
|
return this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|