Wise&mystical  1.0
Project about Europe
Loading...
Searching...
No Matches
timer.h
Go to the documentation of this file.
1#pragma once
2
3// Define Timer struct
4typedef struct
5{
6 float Lifetime;
7
8}Timer;
9
10// Start or restart a timer with a specific lifetime
11void StartTimer(Timer* timer, float lifetime);
12
13// Update a timer with the current frame time
14void UpdateTimer(Timer* timer);
15
16// Check if a timer is done
17bool TimerDone(Timer* timer);
Definition: timer.h:5
float Lifetime
Definition: timer.h:6
void StartTimer(Timer *timer, float lifetime)
Start or restart a timer with a specific lifetime.
Definition: timer.cpp:7
void UpdateTimer(Timer *timer)
Update a timer with the current frame time.
Definition: timer.cpp:18
bool TimerDone(Timer *timer)
Check if a timer is done.
Definition: timer.cpp:30