Clandestine.Texture.ForceDestroyAllTextures C# (CSharp) Method

ForceDestroyAllTextures() public static method

public static ForceDestroyAllTextures ( ) : void
return void
        public static void ForceDestroyAllTextures()
        {
            lock (textures)
            {
                foreach (Texture t in textures.Values.ToArray())
                    t.Destroy();
            }
        }

Usage Example

Beispiel #1
0
 public static void Deinitialise()
 {
     // God, I do despise this bit.
     GC.KeepAlive(windowCloseFunc);
     windowCloseFunc = null;
     Texture.ForceDestroyAllTextures();
     Glfw.glfwCloseWindow();
     Glfw.glfwTerminate();
 }