1
0
forked from 0ad/0ad
0ad/source/tools/atlas/GameInterface/GameLoop.h
Ykkrosh 1926317975 # Linux/ICC fixes
- added "--icc" Premake flag, to disable PCH and set different warning
flags
 - added required headers
 - changed debug_warn to not generate constant-expression-in-conditional
warnings
 - changed FAM popup-warning into a log message, so it's not so
irritating
 - Atlas: pass around wxGLCanvas instead of wxGLContext, because the
context is sometimes just NULL

This was SVN commit r4733.
2007-01-02 18:11:00 +00:00

30 lines
604 B
C++

#ifndef GAMELOOP_H__
#define GAMELOOP_H__
#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 // GAMELOOP_H__