public static CompositorManager getSingleton() { CompositorManager ret = new CompositorManager(OgrePINVOKE.CompositorManager_getSingleton(), false); if (OgrePINVOKE.SWIGPendingException.Pending) { throw OgrePINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
protected void DisposeRenderTarget() { if (_renTarget != null) { CompositorManager.getSingleton().removeCompositorChain(_viewport); _renTarget.removeAllListeners(); _renTarget.removeAllViewports(); _root.getRenderSystem().destroyRenderTarget(_renTarget.getName()); _renTarget = null; _viewport = null; } if (_texture != null) { TextureManager.getSingleton().remove(_texture.getHandle()); _texture.Dispose(); _texture = null; } }
public void Dispose() { IsFrontBufferAvailableChanged -= _isFrontBufferAvailableChanged; DetachRenderTarget(true, true); if (_currentThread != null) { _currentThread.Abort(); } if (_root != null) { DisposeRenderTarget(); CompositorManager.getSingleton().removeAll(); _root.Dispose(); _root = null; } GC.SuppressFinalize(this); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(CompositorManager obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }