Exemplo n.º 1
0
        public static CompositorManager getSingleton()
        {
            CompositorManager ret = new CompositorManager(OgrePINVOKE.CompositorManager_getSingleton(), false);

            if (OgrePINVOKE.SWIGPendingException.Pending)
            {
                throw OgrePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 2
0
        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;
            }
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
 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);
 }