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 In your draw event implementation don't forget to call nextFrame() after
buffer swap. You can use previousFrameDuration() to compute animation speed. buffer swap. You can use previousFrameDuration() to compute animation speed.
Example usage (in e.g. @ref Platform::GlutApplication "GlutApplication" Example usage:
subclass):
@code @code
MyApplication::MyApplication(...): Platform::GlutApplication(...) { MyApplication::MyApplication(const Parameters& parameters): Platform::Application(parameters) {
// Initialization ... // Initialization ...
timeline.setMinimalFrameTime(1/120.0f); // 120 FPS at max timeline.setMinimalFrameTime(1/120.0f); // 120 FPS at max

Loading…
Cancel
Save