Global simulation time.
More...
#include <SimulationTime.h>
Global simulation time.
This class is used to query or modify the simulation time. It returns the current time in frames or in seconds. Atoms uses this class as the global simulation time
◆ deltaTime()
double Atoms::SimulationTime::deltaTime |
( |
| ) |
const |
|
inline |
Delta time.
- Returns
- Delta time for the current tick
◆ endTime()
double Atoms::SimulationTime::endTime |
( |
| ) |
const |
|
inline |
End time.
- Returns
- End simulation time
◆ fps()
double Atoms::SimulationTime::fps |
( |
| ) |
const |
|
inline |
Gets the fps.
- Returns
- Frame per seconds
◆ increment()
void Atoms::SimulationTime::increment |
( |
double |
value | ) |
|
|
inline |
Increments the time.
- Parameters
-
value | Value used to increment the time (in frames) |
◆ seconds()
double Atoms::SimulationTime::seconds |
( |
| ) |
const |
|
inline |
Gets the current time in seconds.
- Returns
- current time in seconds
◆ set()
void Atoms::SimulationTime::set |
( |
double |
value | ) |
|
|
inline |
Sets the time.
- Parameters
-
value | Value use dot set the current time (in frames) |
◆ setDeltaTime()
void Atoms::SimulationTime::setDeltaTime |
( |
double |
value | ) |
|
|
inline |
Sets delta time.
- Parameters
-
Delta | time of the current tick |
◆ setEndTime()
void Atoms::SimulationTime::setEndTime |
( |
double |
value | ) |
|
|
inline |
Sets end time.
- Parameters
-
value | End simulation time (in frames) |
◆ setFps()
void Atoms::SimulationTime::setFps |
( |
double |
fps | ) |
|
|
inline |
Sets the fps.
Fps used to compute the time in seconds
- Parameters
-
◆ time()
double Atoms::SimulationTime::time |
( |
| ) |
const |
|
inline |
Gets current time.
Retunr the current time in frames
- Returns
- Current frame
The documentation for this class was generated from the following files: