forked from 0ad/0ad
Ykkrosh
549150fe38
Terrain: added terrain-editing code to CTerrain, for better encapsulation or something. Console: simplified screen resizing. Game/etc: removed some unnecessary header file inclusions. This was SVN commit r2459.
22 lines
376 B
C
22 lines
376 B
C
#ifndef GAMELOOP_H__
|
|
#define GAMELOOP_H__
|
|
|
|
struct GameLoopState
|
|
{
|
|
int argc;
|
|
char** argv;
|
|
bool running;
|
|
bool rendering;
|
|
const void* currentDC;
|
|
float frameLength; // smoothed to avoid large jumps
|
|
|
|
struct
|
|
{
|
|
float scrollSpeed[4]; // [fwd, bwd, left, right]. 0.0f for disabled.
|
|
} input;
|
|
};
|
|
|
|
extern GameLoopState* g_GameLoop;
|
|
|
|
#endif // GAMELOOP_H__
|