Exemplo n.º 1
0
 public ResourceLifecycleCallbacks(
     RenderingDevice device,
     Action <RenderingDevice> createCallback,
     Action <RenderingDevice> freeCallback)
 {
     _device         = device;
     _createCallback = createCallback;
     _freeCallback   = freeCallback;
     _device.AddResourceListener(this);
 }