Ember
A C++ 20 'game engine' built with SDL3 with wide platform support.
Public Member Functions | List of all members
TimeManager Class Reference

#include <time_manager.h>

Public Member Functions

 TimeManager ()
 
float GetDeltaTime ()
 
Uint64 GetFrameCount ()
 
float GetElapsedTime ()
 
void SetMaxFps (Uint32 fps)
 
float GetFps ()
 
bool IsPaused ()
 
void Pause ()
 
void Resume ()
 
void Update ()
 
void FixedFrameRate (Uint32 max_fps=60)
 

Constructor & Destructor Documentation

◆ TimeManager()

TimeManager::TimeManager ( )
inline

Member Function Documentation

◆ FixedFrameRate()

void TimeManager::FixedFrameRate ( Uint32  max_fps = 60)

◆ GetDeltaTime()

float TimeManager::GetDeltaTime ( )
inline

◆ GetElapsedTime()

float TimeManager::GetElapsedTime ( )
inline

◆ GetFps()

float TimeManager::GetFps ( )
inline

◆ GetFrameCount()

Uint64 TimeManager::GetFrameCount ( )
inline

◆ IsPaused()

bool TimeManager::IsPaused ( )
inline

◆ Pause()

void TimeManager::Pause ( )

◆ Resume()

void TimeManager::Resume ( )

◆ SetMaxFps()

void TimeManager::SetMaxFps ( Uint32  fps)
inline

◆ Update()

void TimeManager::Update ( )

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