+ void setOverdraw(bool overdraw) { this->overdraw = overdraw; }
+ void setSleepTime(int sleep_time) { this->sleep_time = sleep_time; }
+
+ void setSwapInterval(int i) { getBackend()->setSwapInterval(i); }
+
+private:
+ bool overdraw;
+ int sleep_time;
+ // animation control
+ double lastFrame;
+ GLfloat boxPos, boxDirection;
+ // FPS, profiler
+ double lastDisplay, lastProfile;
+ int framect;
+ ProfilerState curState;
+ double stateTime[NumProfilerStates];