summaryrefslogtreecommitdiffstats
path: root/nebu/include/base/nebu_system.h
blob: 8dcae397895880c81434701d388df37b235b3910 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef NEBU_SYSTEM_H
#define NEBU_SYSTEM_H

#include "nebu_callbacks.h"
#include "SDL.h"

/* system specific functions (basically, an SDL/glut wrapper) */
extern unsigned int SystemGetElapsedTime();

extern int SystemMainLoop();
extern void SystemExitLoop(int return_code);
extern void SystemRegisterCallbacks(Callbacks* callbacks);

extern void SystemExit();

extern void SystemHandleInput(SDL_Event *event);

extern Callbacks* current;

#endif