// // Game Set up area // protected override void OnLoad(EventArgs e) { // Output some OpenGL and System info Console.WriteLine("Renderer: " + GL.GetString(StringName.Renderer)); Console.WriteLine("OpGL Version: " + GL.GetString(StringName.Version)); Console.WriteLine("GLSL Version: " + GL.GetString(StringName.ShadingLanguageVersion)); Console.WriteLine(""); //Create new camera pCamera = new CCamera(new Vector4(0.0f, 0.0f, Width, Height), Vector3.UnitY); pCamera.SetPosition(new Vector3(16.0f, 512.0f, 0.0f)); pCamera.SetDirection(new Vector3(1.0f, 0.0f, 1.0f)); //Create Primitives (testing); Rectangle2D = new CPrimitiveRectangle(64.0f, 64.0f, new Vector4(1.0f, 0.0f, 0.0f, 1.0f)); //Load a TIM Texture. This is threaded. pTexture = new CTextureTGA("Resource\\Texture\\page5.TGA"); //Load a map pMap = new CMap(); pMap.LoadTileset(TilesetFormat.TMD, "Resource\\Tileset\\coast.tmd"); pMap.LoadKF("Resource\\Map\\coast.map"); pMap.LoadKFItem("Resource\\Map\\coast.idb"); }