Beispiel #1
0
        /// <summary>
        /// Releases unmanaged objects and unregisters events
        /// </summary>
        public void Dispose()
        {
            if (_isEnabled)
            {
                _culler.Dispose();
                DisposeComputeBuffer();

                Aura.OnPreRenderEvent -= Aura_onPreRenderEvent;

                _isEnabled = false;
            }
        }
Beispiel #2
0
 /// <summary>
 /// Disposes the members
 /// </summary>
 public void Dispose()
 {
     ReleaseBuffer();
     _culler.Dispose();
 }