Axiom.RenderSystems.DirectX9.D3DRenderSystem.SetPointParameters C# (CSharp) Method

SetPointParameters() private method

private SetPointParameters ( Real size, bool attenuationEnabled, Real constant, Real linear, Real quadratic, Real minSize, Real maxSize ) : void
size Real
attenuationEnabled bool
constant Real
linear Real
quadratic Real
minSize Real
maxSize Real
return void
        public override void SetPointParameters(Real size, bool attenuationEnabled,
            Real constant, Real linear, Real quadratic, Real minSize, Real maxSize)
        {
            if ( attenuationEnabled )
            {
                //scaling required
                SetRenderState( RenderState.PointScaleEnable, true );
                SetFloatRenderState( RenderState.PointScaleA, constant );
                SetFloatRenderState(RenderState.PointScaleB, linear);
                SetFloatRenderState(RenderState.PointScaleC, quadratic);
            }
            else
            {
                //no scaling required
                SetRenderState( RenderState.PointScaleEnable, false );
            }

            SetFloatRenderState( RenderState.PointSize, size );
            SetFloatRenderState( RenderState.PointSizeMin, minSize );
            if ( maxSize == 0.0f )
            {
                maxSize = Capabilities.MaxPointSize;
            }
            SetFloatRenderState( RenderState.PointSizeMax, maxSize );
        }
D3DRenderSystem