public void Add(ITexture texture) { TexturesTotal++; TotalTextureMemory += texture.GetTextureSize(); TexturesTotalPeak = Math.Max(TexturesTotalPeak, TexturesTotal); TotalTextureMemoryPeak = Math.Max(TotalTextureMemoryPeak, TotalTextureMemory); }
public void Remove(ITexture texture) { TexturesTotal--; TotalTextureMemory -= texture.GetTextureSize(); }