Пример #1
0
        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);
        }
Пример #2
0
        protected void Unload()
        {
            Components.UnloadContent();
            CoreComponents.UnloadContent();

            if (_Cube != null)
            {
                _Cube.UnloadContent();
            }
            _Cube = null;

            ModelFactory.UnloadAll();
            MaterialFactory.UnloadAll();
            EffectFactory.UnloadAll();
            TextureFactory.UnloadAll();

            UnloadContent();
        }
Пример #3
0
        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);
        }