Ejemplo n.º 1
0
        /// <summary>
        /// Unload contents
        /// </summary>
        public override void UnloadContent()
        {
            if (Font != null)
            {
                Font.Dispose();
            }
            Font = null;

            if (Shader != null)
            {
                Shader.Dispose();
            }
            Shader = null;

            if (Sprite != null)
            {
                Sprite.Dispose();
            }
            Sprite = null;

            if (Trefoil != null)
            {
                Trefoil.Dispose();
            }
            Trefoil = null;

            if (Torus != null)
            {
                Torus.Dispose();
            }
            Torus = null;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Unload contents
        /// </summary>
        public override void UnloadContent()
        {
            if (Plane != null)
            {
                Plane.Dispose();
            }
            Plane = null;

            if (Torus != null)
            {
                Torus.Dispose();
            }
            Torus = null;

            if (SceneShader != null)
            {
                SceneShader.Dispose();
            }
            SceneShader = null;

            if (Font != null)
            {
                Font.Dispose();
            }
            Font = null;

            if (SpriteBatch != null)
            {
                SpriteBatch.Dispose();
            }
            SpriteBatch = null;

            if (FrameBuffer != null)
            {
                FrameBuffer.Dispose();
            }
            FrameBuffer = null;
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Unload contents
        /// </summary>
        public override void UnloadContent()
        {
            if (Torus != null)
            {
                Torus.Dispose();
            }
            Torus = null;

            if (Sphere != null)
            {
                Sphere.Dispose();
            }
            Sphere = null;

            if (Floor != null)
            {
                Floor.Dispose();
            }
            Floor = null;

            if (Shader != null)
            {
                Shader.Dispose();
            }
            Shader = null;

            if (Moon != null)
            {
                Moon.Dispose();
            }
            Moon = null;

            if (Mars != null)
            {
                Mars.Dispose();
            }
            Mars = null;

            if (Marble != null)
            {
                Marble.Dispose();
            }
            Marble = null;

            if (Batch != null)
            {
                Batch.Dispose();
            }
            Batch = null;

            if (Font != null)
            {
                Font.Dispose();
            }
            Font = null;

            if (Stream != null)
            {
                Stream.Dispose();
            }
            Stream = null;
        }