Beispiel #1
0
        /// <summary>
        /// Function to clean up the categorized interfaces.
        /// </summary>
        private void DestroyInterfaces()
        {
            if (Fonts != null)
            {
                Fonts.CleanUp();
            }

            Fonts = null;

            if (Textures != null)
            {
                Textures.CleanUp();
            }

            Textures = null;

            if (Shaders != null)
            {
                Shaders.CleanUp();
            }

            Shaders = null;

            if (Output != null)
            {
                Output.CleanUp();
            }

            Output = null;

            if (Rasterizer != null)
            {
                Rasterizer.CleanUp();
            }
        }