public static void CheckGlError()
{
var n = Gl.glGetError();
/* if( n != Gl.GL_NO_ERROR )
{
var error = "GL Error: {0}\n{1}".F((GlError)n, new StackTrace());
WriteGraphicsLog(error);
throw new InvalidOperationException("OpenGL Error: See graphics.log for details.");
} */
}
public class GraphicSettings
{
public string Renderer = "Cg";
// public WindowMode Mode = WindowMode.PseudoFullscreen;
public WindowMode Mode = WindowMode.Windowed;
public int2 FullscreenSize = new int2(0,0);
// public int2 WindowedSize = new int2(1024, 768);
public int2 WindowedSize = new int2(640, 480);
public bool PixelDouble = false;
public bool CapFramerate = false;
public int MaxFramerate = 60;
public int BatchSize = 8192;
public int NumTempBuffers = 8;
public int SheetSize = 2048;
}