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