Engine
Frameworkcreatedbymeusableforthecreationofsimplegames.CurrentlysupportsOpenGL(Verysimple)andVulkan.
Public Member Functions | Friends | List of all members
Engine::Time Class Reference

This object is used to retrieve information regarding the time. NOTE: This object can only be created by the Engine. More...

#include <Time.hpp>

Public Member Functions

 ~Time ()=default
 
float GetDeltaTime () const
 This method allows you to get the current deltaTime. More...
 
int GetMaxIterations () const
 This method is used to get the maximum amount of iterations for the previous frame rates. More...
 
eastl::vector< float > GetPreviousFramerates () const
 This method allows you to get a vector of floats from the previous frames their delta times. More...
 

Friends

class Engine
 

Detailed Description

This object is used to retrieve information regarding the time. NOTE: This object can only be created by the Engine.

Definition at line 11 of file Time.hpp.

Constructor & Destructor Documentation

Engine::Time::~Time ( )
default

Member Function Documentation

float Engine::Time::GetDeltaTime ( ) const

This method allows you to get the current deltaTime.

Returns
Returns the current delta time as a float.

Definition at line 15 of file Time.cpp.

int Engine::Time::GetMaxIterations ( ) const

This method is used to get the maximum amount of iterations for the previous frame rates.

Returns
Returns the maximum amount of iterations as an int.

Definition at line 20 of file Time.cpp.

eastl::vector< float > Engine::Time::GetPreviousFramerates ( ) const

This method allows you to get a vector of floats from the previous frames their delta times.

Returns
Returns the delta times from the previous frames as a vector of floats.

Definition at line 25 of file Time.cpp.

Friends And Related Function Documentation

Engine
friend

Definition at line 13 of file Time.hpp.


The documentation for this class was generated from the following files: