add input
add time add vertex color
This commit is contained in:
@@ -2,11 +2,19 @@
|
||||
|
||||
UINT Time::init()
|
||||
{
|
||||
_lastFrame = CLOCK::now();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void Time::update()
|
||||
{
|
||||
TIMEPOINT now = CLOCK::now();
|
||||
SECONDS diff = now - _lastFrame;
|
||||
_lastFrame = now;
|
||||
_deltaTime = diff.count();
|
||||
|
||||
|
||||
}
|
||||
|
||||
void Time::deInit()
|
||||
|
||||
Reference in New Issue
Block a user