Ejemplo n.º 1
0
 public void Add(ITexture texture)
 {
     TexturesTotal++;
     TotalTextureMemory    += texture.GetTextureByteSize();
     TexturesTotalPeak      = Math.Max(TexturesTotalPeak, TexturesTotal);
     TotalTextureMemoryPeak = Math.Max(TotalTextureMemoryPeak, TotalTextureMemory);
 }
Ejemplo n.º 2
0
 public void Remove(ITexture texture)
 {
     TexturesTotal--;
     TotalTextureMemory -= texture.GetTextureByteSize();
 }