Operation Null Mind 0.4.1
A 2D roguelike top down shooter game made with SDL2
 
Loading...
Searching...
No Matches
time_system.h
Go to the documentation of this file.
1
30#pragma once
31#include <SDL.h>
32
43
44extern const TimeSystem * const Time;
45
46void Time_PreUpdate();
47void Time_UpdateFPS();
48void Time_SetTimeScale(float scale);
Structure to handle time-related functionality.
Definition time_system.h:36
double previousTick
Previous frame tick value.
Definition time_system.h:41
float timeScale
Scale factor for time.
Definition time_system.h:38
float scaledDeltaTimeSeconds
Delta time multiplied by time scale.
Definition time_system.h:39
double programElapsedTimeSeconds
Total time elapsed since program start.
Definition time_system.h:40
float deltaTimeSeconds
Time between current frame and previous frame in seconds.
Definition time_system.h:37
const TimeSystem *const Time
Global read-only time system pointer for other modules.
Definition time_system.c:29
void Time_UpdateFPS()
[Utility] Updates the FPS counter
Definition time_system.c:54
void Time_SetTimeScale(float scale)
[Utility] Sets the time scale.
Definition time_system.c:81
void Time_PreUpdate()
[PreUpdate] Updates the time system values
Definition time_system.c:38
void Time_ResetTotalTime()
[Utility] Resets the total time elapsed in the program.
Definition time_system.c:91