protected virtual void Initialize() { CoreComponents.Add(_Keyboard = new Keyboard(this)); CoreComponents.Add(_Mouse = new Mouse(this)); CoreComponents.Add(_Camera = new Camera(this)); _ModelFactory = new ModelFactory(this); _TextureFactory = new TextureFactory(this); _EffectFactory = new EffectFactory(this); _MaterialFactory = new MaterialFactory(this); }
protected void Unload() { Components.UnloadContent(); CoreComponents.UnloadContent(); if (_Cube != null) { _Cube.UnloadContent(); } _Cube = null; ModelFactory.UnloadAll(); MaterialFactory.UnloadAll(); EffectFactory.UnloadAll(); TextureFactory.UnloadAll(); UnloadContent(); }