public override bool IsActive(RenderSettings settings)
 {
     switch (settings.Parameters.FillMode)
     {
         case FillMode.Solid:
             _fillMode = SlimDX.Direct3D9.FillMode.Solid;
             return true;
         case FillMode.Wireframe:
             _fillMode = SlimDX.Direct3D9.FillMode.Wireframe;
             return true;
         default:
             return false;
     }
 }
示例#2
0
        public override bool IsActive(RenderSettings settings)
        {
            switch (settings.Parameters.FillMode)
            {
            case FillMode.Solid:
                _fillMode = SlimDX.Direct3D9.FillMode.Solid;
                return(true);

            case FillMode.Wireframe:
                _fillMode = SlimDX.Direct3D9.FillMode.Wireframe;
                return(true);

            default:
                return(false);
            }
        }