Overload  1.1
Game engine with editor
Public Member Functions | List of all members
OvTools::Time::Clock Class Reference

#include <Clock.h>

Public Member Functions

void Update ()
 
float GetFramerate ()
 
float GetDeltaTime ()
 
float GetDeltaTimeUnscaled ()
 
float GetTimeSinceStart ()
 
float GetTimeScale ()
 
void Scale (float p_coeff)
 
void SetTimeScale (float p_timeScale)
 

Member Function Documentation

◆ GetDeltaTime()

float OvTools::Time::Clock::GetDeltaTime ( )

Return the actual delta time (Scale applied)

◆ GetDeltaTimeUnscaled()

float OvTools::Time::Clock::GetDeltaTimeUnscaled ( )

Return the actual delta time (Scale not applied)

◆ GetFramerate()

float OvTools::Time::Clock::GetFramerate ( )

Return the actual framerate (Depend on the delta time)

@project: Overload

Author
: Overload Tech. @restrictions: This software may not be resold, redistributed or otherwise conveyed to a third party.

◆ GetTimeScale()

float OvTools::Time::Clock::GetTimeScale ( )

Return the current timescale

◆ GetTimeSinceStart()

float OvTools::Time::Clock::GetTimeSinceStart ( )

Return the time elapsed since clock creation

◆ Scale()

void OvTools::Time::Clock::Scale ( float  p_coeff)

Multiply the timescale by the given coefficient

Parameters
p_coeff

◆ SetTimeScale()

void OvTools::Time::Clock::SetTimeScale ( float  p_timeScale)

Define a timescale

Parameters
p_timescale

◆ Update()

void OvTools::Time::Clock::Update ( )

Update the clock


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