HatchitGame
Main Page
Related Pages
Namespaces
Classes
Files
File List
include
unused
ht_sdltimer.h
1
15
#pragma once
16
17
#include <ht_platform.h>
18
#include <ht_timer.h>
19
#include <ht_types.h>
20
21
namespace
Hatchit
{
22
23
namespace
Game {
24
25
class
HT_API
SDLTimer
:
public
ITimer
26
{
27
public
:
28
SDLTimer
();
29
30
~
SDLTimer
();
31
32
void
VStart()
override
;
33
void
VTick()
override
;
34
void
VCalculateFPS()
override
;
35
36
float
VDeltaTime()
override
;
37
float
VFramesPerSecond()
override
;
38
float
VTotalTime()
override
;
39
40
private
:
41
uint32_t m_startTime;
42
uint32_t m_currentTime;
43
uint32_t m_previousTime;
44
float
m_fps;
45
float
m_deltaTime;
46
};
47
48
}
49
50
}
Hatchit::Game::SDLTimer
Definition:
ht_sdltimer.h:25
Hatchit
Hatchit Engine Copyright(c) 2015-2016 Third-Degree.
Definition:
ht_glfwkeyboard.h:21
Hatchit::Game::ITimer
Definition:
ht_timer.h:23
Generated by
1.8.11