Oxygine
1
2g game engine
oxygine
src
Clock.h
1
#pragma once
2
#include "oxygine-include.h"
3
#include "core/Object.h"
4
5
namespace
oxygine
6
{
7
DECLARE_SMART(Clock, spClock);
8
class
Clock
:
public
Object
9
{
10
public
:
11
Clock
();
12
~
Clock
();
13
14
timeMS getTime()
const
;
15
int
getPauseCounter()
const
;
16
int
getFixedStep()
const
;
17
int
getLastDT()
const
;
18
timeMS getLastUpdateTime()
const
;
19
float
getMultiplier()
const
;
20
21
void
setFixedStep(
float
stepMS);
22
void
setMultiplier(
float
m);
23
24
void
pause();
25
void
resume();
26
void
resetPause();
27
28
void
update(timeMS globalTime = -1);
29
timeMS doTick();
30
31
std::string dump()
const
;
32
33
private
:
34
int
_counter;
35
double
_destTime;
36
double
_srcTime;
37
38
float
_multiplier;
39
float
_fixedStep;
40
41
int
_lastDT;
42
timeMS _lastUpdateTime;
43
};
44
}
oxygine
–oxgl-end–!
Definition:
Actor.h:14
oxygine::Object
Definition:
Object.h:83
oxygine::Clock
Definition:
Clock.h:8
Generated on Tue Feb 13 2018 05:01:17 for Oxygine by
1.8.14