2005-07-03 18:25:48 +02:00
|
|
|
#ifndef GAMELOOP_H__
|
|
|
|
#define GAMELOOP_H__
|
|
|
|
|
2005-09-13 05:57:34 +02:00
|
|
|
extern void (*Atlas_GLSetCurrent)(void* context);
|
|
|
|
|
2005-06-28 01:04:34 +02:00
|
|
|
struct GameLoopState
|
|
|
|
{
|
|
|
|
int argc;
|
|
|
|
char** argv;
|
|
|
|
bool running;
|
|
|
|
bool rendering;
|
2005-12-02 22:08:10 +01:00
|
|
|
bool worldloaded;
|
2005-09-13 05:57:34 +02:00
|
|
|
const void* glContext;
|
2005-07-03 18:25:48 +02:00
|
|
|
float frameLength; // smoothed to avoid large jumps
|
|
|
|
|
2005-09-15 07:31:49 +02:00
|
|
|
struct Input
|
2005-07-03 18:25:48 +02:00
|
|
|
{
|
|
|
|
float scrollSpeed[4]; // [fwd, bwd, left, right]. 0.0f for disabled.
|
2005-09-15 07:31:49 +02:00
|
|
|
float zoomDelta;
|
2005-07-03 18:25:48 +02:00
|
|
|
} input;
|
2005-06-28 01:04:34 +02:00
|
|
|
};
|
|
|
|
|
2005-07-03 18:25:48 +02:00
|
|
|
extern GameLoopState* g_GameLoop;
|
|
|
|
|
|
|
|
#endif // GAMELOOP_H__
|