You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
301 B
26 lines
301 B
7 years ago
|
|
||
|
|
||
|
class FrameWatcher {
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
public:
|
||
|
FrameWatcher();
|
||
|
~FrameWatcher();
|
||
|
|
||
|
void do_tick();
|
||
|
|
||
|
private:
|
||
|
|
||
|
float get_elapsed_time();
|
||
|
|
||
|
float step_size = 0.0166f;
|
||
|
double frame_time = 0.0;
|
||
|
double elapsed_time = 0.0;
|
||
|
double delta_time = 0.0;
|
||
|
double accumulator_time = 0.0;
|
||
|
double current_time = 0.0;
|
||
|
|
||
|
|
||
|
};
|