1
0
forked from 0ad/0ad
0ad/source/tools/atlas/GameInterface/GameLoop.h
janwas b755ddefda remove all author/modified by tags.
make include guards consistent.

This was SVN commit r5040.
2007-05-07 16:33:24 +00:00

30 lines
619 B
C++

#ifndef INCLUDED_GAMELOOP
#define INCLUDED_GAMELOOP
#include "ps/GameSetup/CmdLineArgs.h"
extern void (*Atlas_GLSetCurrent)(void* context);
class View;
struct GameLoopState
{
CmdLineArgs args;
bool running; // whether the Atlas game loop is still running
View* view; // current 'view' (controls updates, rendering, etc)
const void* glCanvas; // the wxGlCanvas to draw on
float frameLength; // smoothed to avoid large jumps
struct Input
{
float scrollSpeed[4]; // [fwd, bwd, left, right]. 0.0f for disabled.
float zoomDelta;
} input;
};
extern GameLoopState* g_GameLoop;
#endif // INCLUDED_GAMELOOP