Пример #1
0
        public virtual bool AttachDepthBuffer(DepthBuffer ndepthBuffer)
        {
            var retVal = false;

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

            return retVal;
        }