/* event handlers */
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            UseGraphicsMode(new Texturing2DMode());
            var pool = new ResourcePool(
                new Pool <Texture>(Texture.Allocate),
                new Pool <VertexBuffer>(VertexBuffer.Allocate)
                );

            rootState = new GameState(this, pool);
            Debug.Assert(mainWindow == null);
            mainWindow = this;
        }
Beispiel #2
0
 public GameState(EngineWindow window, ResourcePool pool)
 {
     this.pool   = pool;
     this.window = window;
 }