split IGraphicsDevice.{Present,PumpInput}

This commit is contained in:
Chris Forbes
2011-05-22 22:10:48 +12:00
parent 77686adc1a
commit 5ecc1ebefc
5 changed files with 16 additions and 5 deletions

View File

@@ -180,9 +180,13 @@ namespace OpenRA.Renderer.Glsl
}
}
public void Present( IInputHandler inputHandler )
public void Present()
{
Sdl.SDL_GL_SwapBuffers();
}
public void PumpInput( IInputHandler inputHandler )
{
Game.HasInputFocus = 0 != ( Sdl.SDL_GetAppState() & Sdl.SDL_APPINPUTFOCUS );
var mods = MakeModifiers( Sdl.SDL_GetModState() );