Beispiel #1
0
        public void Unload(ContentCache cache)
        {
            Log.Write(this, "Unloading texture resource for video sprite.");

            cache.Unload(resource, out texture);

            pixelData = null;

            Loaded = false;
        }
Beispiel #2
0
        public void Unload(ContentCache cache)
        {
            cache.Unload(resource, out font);

            Loaded = false;
        }
Beispiel #3
0
        public virtual void Unload(ContentCache cache)
        {
            Log.Write(this, "Unloading game sky.");

            cache.Unload(resource, out model);

            Loaded = false;
        }
Beispiel #4
0
        public virtual void Unload(ContentCache cache)
        {
            Log.Write(this, "Unloading game terrain.");

            cache.Unload(resource, out model);
            heightMap = null;

            Loaded = false;
        }
Beispiel #5
0
        public void Unload(ContentCache cache)
        {
            Log.Write(this, "Unloading effect resource for the video particle effect.");

            cache.Unload(resource, out config);
            config = null;
            particles = null;
            vertexDeclaration = null;
            vertexBuffer = null;

            Loaded = false;
        }
Beispiel #6
0
        public override void Unload(ContentCache cache)
        {
            Log.Write(this, "Unloading model resource for video model.");

            cache.Unload(resource, out model);
        }
Beispiel #7
0
        public virtual void Unload(ContentCache cache)
        {
            cache.Unload(resource, out texture);

            Loaded = false;
        }
Beispiel #8
0
        public void Unload(ContentCache cache)
        {
            cache.Unload(@"Models\skydome", out dome);
            cache.Unload(@"Effects\atmosphere", out effect);

            cache.Unload(@"Textures\daysky", out day);
            cache.Unload(@"Textures\sunset", out sunset);
            cache.Unload(@"Textures\nightsky", out night);
        }
Beispiel #9
0
        public virtual void Unload(ContentCache cache)
        {
            Log.Write(this, "Unloading game terrain.");

            cache.Unload(modelResource, out model);
            cache.Unload(textureResource, out texture);
            cache.Unload(effectResource, out effect);

            heightMap = null;

            Loaded = false;
        }