protected override void OnLoad(EventArgs e) { World = new World(128, 16, 128); Player player = new Player(World, Matrix4.CreatePerspectiveFieldOfView((float)MathHelper.DegreesToRadians(45.0), 1.0f * Width / Height, 0.1f, 300.0f), new Vector3(10, 200, 10), 0, 0); World.Player = player; CursorVisible = false; KeyDown += new EventHandler <KeyboardKeyEventArgs>(KeyDownAction); droidSans = new QFont("assets/fonts/DroidSansMono.ttf", 18, new QuickFont.Configuration.QFontBuilderConfiguration(false)); fontDrawer = new QFontDrawing(); GL.ClearColor(0.2f, 0.4f, 1.0f, 1.0f); GL.Enable(EnableCap.DepthTest); GL.Enable(EnableCap.CullFace); GL.PolygonMode(MaterialFace.FrontAndBack, PolygonMode.Line); // Wire Frame Mode //GL.PolygonMode(MaterialFace.FrontAndBack, PolygonMode.Point); // Point Mode //GL.PolygonMode(MaterialFace.Front, PolygonMode.Fill); // Default Fill Mode World.PreLoad(); Atlas = new TextureAtlas(32, 32, 16); Atlas.AddImage("starhide.dirt", "assets/dirt.png"); Atlas.AddImage("starhide.grass", "assets/grass.png"); base.OnLoad(e); }