Browse Source

Doc++

pull/278/head
Vladimír Vondruš 13 years ago
parent
commit
8d5f6037c7
  1. 5
      src/Timeline.h

5
src/Timeline.h

@ -57,10 +57,9 @@ performed, after everything is properly initialized.
In your draw event implementation don't forget to call nextFrame() after
buffer swap. You can use previousFrameDuration() to compute animation speed.
Example usage (in e.g. @ref Platform::GlutApplication "GlutApplication"
subclass):
Example usage:
@code
MyApplication::MyApplication(...): Platform::GlutApplication(...) {
MyApplication::MyApplication(const Parameters& parameters): Platform::Application(parameters) {
// Initialization ...
timeline.setMinimalFrameTime(1/120.0f); // 120 FPS at max

Loading…
Cancel
Save