Axiom.RenderSystems.DirectX9.D3DRenderSystem.SetScissorTest C# (CSharp) Метод

SetScissorTest() приватный метод

private SetScissorTest ( bool enable, int left, int top, int right, int bottom ) : void
enable bool
left int
top int
right int
bottom int
Результат void
        public override void SetScissorTest( bool enable, int left, int top, int right, int bottom )
        {
            if ( enable )
            {
                SetRenderState(RenderState.ScissorTestEnable, true);
                ActiveD3D9Device.ScissorRect = new System.Drawing.Rectangle( left, top, right - left, bottom - top );
            }
            else
            {
                SetRenderState( RenderState.ScissorTestEnable, false );
            }
        }
D3DRenderSystem