示例#1
0
 public Renderer()
 {
     _pipeline              = new Pipeline();
     _counters              = new Counters();
     _window                = new Window(this);
     _textureCopy           = new TextureCopy(this);
     _backgroundTextureCopy = new TextureCopy(this);
     _sync             = new Sync();
     PersistentBuffers = new PersistentBuffers();
     ResourcePool      = new ResourcePool();
 }
示例#2
0
 public void Dispose()
 {
     _textureCopy.Dispose();
     _backgroundTextureCopy.Dispose();
     PersistentBuffers.Dispose();
     ResourcePool.Dispose();
     _pipeline.Dispose();
     _window.Dispose();
     _counters.Dispose();
     _sync.Dispose();
 }