Game Development Reference
In-Depth Information
public void Acquire()
{
if (_device != null)
{
try
{
if (!_acquired)
{
_device.Acquire();
_acquired = true;
}
}
catch
{
_acquired = false;
}
}
}
public void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
protected virtual void Dispose(bool disposing)
{
if (disposing)
{
if (_eventTrigger != null)
_eventTrigger.Set();
if (_device != null)
{
_device.Unacquire();
_device.Dispose();
_device = null;
}
_eventTrigger = null;
}
}
}
Search Nedrilad ::




Custom Search