public PausedGameState(PrehenderGame Owner,GameState PreviousState,GameState ResumeState) : base(Owner) { _PausedState = PreviousState; _ResumeState = ResumeState; }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); // ac = new AudioContext(); // xram = new XRamExtension(); SoundMan= new cNewSoundManager(new BASSDriver(), new []{new DirectoryInfo(GetSoundFolder())}); GL.ClearColor(Color.Gray); GL.Enable(EnableCap.DepthTest); GL.Enable(EnableCap.Texture2D); currentState = new GameRunningState(this); TextureMan = new TextureManager(new DirectoryInfo[] { new DirectoryInfo(GetImageFolder()) }); // SoundMan = new SoundManager(hnd,new DirectoryInfo[] { new DirectoryInfo(GetSoundFolder()) }); //BlockTexture = LoadTexture(@"D:\testtexture.png"); //BlockTexture2 = LoadTexture(@"D:\testtexture2.png"); TextureMan.WaitonSearchComplete(); }