Example #1
0
        protected void Load()
        {
            CoreComponents.LoadContent();
            Components.LoadContent();

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

            LoadContent();
        }
Example #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();
        }
Example #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();
        }
Example #4
0
        protected void Load()
        {
            CoreComponents.LoadContent();
            Components.LoadContent();

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

            LoadContent();
        }