Beispiel #1
0
        public virtual void DetachDepthBuffer()
        {
            if (this.depthBuffer == null)
            {
                return;
            }

            this.depthBuffer.NotifyRenderTargetDetached(this);
            this.depthBuffer = null;
        }
Beispiel #2
0
        public virtual bool AttachDepthBuffer(DepthBuffer ndepthBuffer)
        {
            var retVal = false;

            if (ndepthBuffer.IsCompatible(this))
            {
                retVal = true;
                DetachDepthBuffer();
                this.depthBuffer = ndepthBuffer;
                this.depthBuffer.NotifyRenderTargetAttached(this);
            }

            return(retVal);
        }
Beispiel #3
0
 public virtual void _DetachDepthBuffer()
 {
     this.depthBuffer = null;
 }