Files
my_glut/headers/glut_timers.h
2026-03-13 16:48:03 +01:00

17 lines
360 B
C

#pragma once
/* list of timers, no way to identify them, so no prunability outside of their exhaustion */
typedef struct timer_list_entry_t {
int remaining_ms;
void (*callback) (int);
struct timer_list_entry_t* next;
} timer_list_entry ;
void timers_add( timer_list_entry *toAdd);
void decrease_timers();
int timers_isEmpty();
int timers_isUpdating();