In class ham ke maloom hast che kari anjam midahad.
More...
#include <Timer.h>
Public Member Functions |
| Timer () |
| Constructor.
|
| Timer (int fpsLimit) |
| ~Timer () |
| Destructor.
|
int | GetTime () |
| Returns the elapsed time in mili seconds.
|
bool | NextFrame () |
float | GetTimeElapsed () |
| Returns the elapsed time in seconds.
|
int | GetTime2 () |
| KgeUnknown () |
| Constructor.
|
virtual | ~KgeUnknown () |
| Destructor.
|
virtual void | AddRef () |
| Add a reference to the object.
|
virtual void | DecRef () |
| Decrease a reference from the object. if its reference count get 0 then the object will destroy.
|
u32 | GetRefCount () |
| Return resource reference count.
|
const char * | GetDebugText () |
| returns the instance debug text.
|
Public Attributes |
int | fps |
| For limiting the FPS.
|
int | Interval |
Detailed Description
In class ham ke maloom hast che kari anjam midahad.
Definition at line 18 of file Timer.h.
Constructor & Destructor Documentation
kge::core::Timer::Timer |
( |
| ) |
|
kge::core::Timer::Timer |
( |
int |
fpsLimit | ) |
|
Constructor
- Parameters
-
fpsLimit | For limiting the FPS. |
kge::core::Timer::~Timer |
( |
| ) |
|
|
inline |
Destructor.
Definition at line 30 of file Timer.h.
Member Function Documentation
int kge::core::Timer::GetTime |
( |
| ) |
|
Returns the elapsed time in mili seconds.
int kge::core::Timer::GetTime2 |
( |
| ) |
|
float kge::core::Timer::GetTimeElapsed |
( |
| ) |
|
Returns the elapsed time in seconds.
bool kge::core::Timer::NextFrame |
( |
| ) |
|
If the Interval time reached returns true
- See Also
- Interval
Member Data Documentation
u64 kge::core::Timer::base |
|
protected |
int kge::core::Timer::fps |
For limiting the FPS.
Definition at line 40 of file Timer.h.
u64 kge::core::Timer::freq |
|
protected |
int kge::core::Timer::ims |
|
protected |
int kge::core::Timer::Interval |
Sets the interval in mili seconds
- See Also
- NextFrame
Definition at line 44 of file Timer.h.
bool kge::core::Timer::isFirstGetTimeCall |
|
protected |
u64 kge::core::Timer::lastTick |
|
protected |
The documentation for this class was generated from the following file:
- E:/mycodes/git/kge/Include/core/Timer.h