project for a (works on my devices) demo
This commit is contained in:
16
headers/glut_timers.h
Normal file
16
headers/glut_timers.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#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();
|
||||
Reference in New Issue
Block a user