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