Esempio n. 1
0
        protected void Load()
        {
            CoreComponents.LoadContent();
            Components.LoadContent();

            _Cube = new Content.Cube(this);
            _Cube.LoadContent();

            LoadContent();
        }
Esempio n. 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();
        }
Esempio n. 3
0
        protected void Unload()
        {
            Components.UnloadContent();
            CoreComponents.UnloadContent();

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

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

            UnloadContent();
        }
Esempio n. 4
0
        protected void Load()
        {
            CoreComponents.LoadContent();
            Components.LoadContent();

            _Cube = new Content.Cube(this);
            _Cube.LoadContent();

            LoadContent();
        }