Expose Graphics.Renderer setting; Refactor Renderer.Null.

This commit is contained in:
Paul Chote
2010-11-11 23:53:29 +13:00
parent 233e9326f0
commit ccf66cde2f
11 changed files with 43 additions and 92 deletions

View File

@@ -47,6 +47,7 @@ namespace OpenRA.Renderer.Glsl
public GraphicsDevice( int width, int height, WindowMode window, bool vsync )
{
Console.WriteLine("Using Gl renderer");
Sdl.SDL_Init( Sdl.SDL_INIT_NOPARACHUTE | Sdl.SDL_INIT_VIDEO );
Sdl.SDL_GL_SetAttribute( Sdl.SDL_GL_DOUBLEBUFFER, 1 );
Sdl.SDL_GL_SetAttribute( Sdl.SDL_GL_RED_SIZE, 8 );