Пример #1
0
        /// <summary>
        ///     Gets the parameters used for Depth testing.
        /// </summary>
        /// <returns></returns>
        public RenderBase.ODepthOperation getDepthTest()
        {
            RenderBase.ODepthOperation output = new RenderBase.ODepthOperation();

            uint value = getParameter(PICACommand.depthTestConfig);

            output.isTestEnabled = (value & 1) > 0;
            output.testFunction  = (RenderBase.OTestFunction)((value >> 4) & 0xf);
            output.isMaskEnabled = (value & 0x1000) > 0;

            return(output);
        }
        /// <summary>
        ///     Gets the parameters used for Depth testing.
        /// </summary>
        /// <returns></returns>
        public RenderBase.ODepthOperation getDepthTest()
        {
            RenderBase.ODepthOperation output = new RenderBase.ODepthOperation();

            uint value = getParameter(PICACommand.depthTestConfig);
            output.isTestEnabled = (value & 1) > 0;
            output.testFunction = (RenderBase.OTestFunction)((value >> 4) & 0xf);
            output.isMaskEnabled = (value & 0x1000) > 0;

            return output;
        }