Files
PCK-Studio/MinecraftUSkinEditor/Classes/StoneVOX/QFont/JTextureManager.cs
PhoenixARC 10f1c8daa0 update
2021-08-09 19:05:20 -04:00

40 lines
800 B
C#

using System.Collections.Generic;
namespace QuickFont
{
/// <summary>
/// A very simple class for managing a collection of textures.
/// </summary>
public class JTextureManager
{
List<JTexture> textureList;
public JTextureManager()
{
textureList = new List<JTexture>();
}
public JTexture Add(JTexture texture)
{
textureList.Add(texture);
return texture;
}
public void Remove(JTexture textureToRemove)
{
textureList.Remove(textureToRemove);
textureToRemove.Free();
}
public void FreeAll()
{
foreach (JTexture tex in textureList)
{
tex.Free();
}
}
}
}