忍者ブログ

Memeplexes

プログラミング、3DCGとその他いろいろについて

RenderStateのプロパティ

どうも紛糾してきたのでMicrosoft.Xna.Framework.Graphics.RenderStateのプロパティについてまとめたいと思います。

1.Alpha Blending
        public bool AlphaBlendEnable { get; set; }
        public Blend SourceBlend { get; set; }
        public Blend DestinationBlend { get; set; }
        public BlendFunction BlendFunction { get; set; }
        public Color BlendFactor { get; set; }

        public bool SeparateAlphaBlendEnabled { get; set; }
        public Blend AlphaSourceBlend { get; set; }
        public Blend AlphaDestinationBlend { get; set; }
        public BlendFunction AlphaBlendOperation { get; set; }

2.Alpha Testing
        public bool AlphaTestEnable { get; set; }
        public CompareFunction AlphaFunction { get; set; }
        public ReferenceAlpha { get; set; }


3.Point Sprite
        public bool PointSpriteEnable { get; set; }
        public float PointSize { get; set; }
        public float PointSizeMax { get; set; }
        public float PointSizeMin { get; set; }

4.Culling
        public CullMode CullMode { get; set; }

5.Depth Buffering
        public DepthBufferEnable { get; set; }
        public CompareFunction DepthBufferFunction { get; set; }
        public bool DepthBufferWriteEnable { get; set; }

        public float DepthBias { get; set; }
        public float SlopeScaleDepthBias { get; set; }

6.Fog
        public bool FogEnable { get; set; }
        public float FogStart { get; set; }
        public float FogEnd { get; set; }
        public Color FogColor { get; set; }
        public float FogDensity { get; set; }
        public FogMode FogTableMode { get; set; }
        public FogMode FogVertexMode { get; set; }
        public bool RangeFogEnable { get; set; }
        
7.Outline and Fill
        public FillMode FillMode { get; set; }
        
8.Stencil Buffer
        public bool StencilEnable { get; set; }
        public int ReferenceStencil { get; set; }
        public StencilOperation StencilDepthBufferFail { get; set; }
        public StencilOperation StencilFail { get; set; }
        public CompareFunction StencilFunction { get; set; }
        public int StencilMask { get; set; }
        public StencilOperation StencilPass { get; set; }
        public int StencilWriteMask { get; set; }
        public bool TwoSidedStencilMode { get; set; }
        public StencilOperation CounterClockwiseStencilDepthBufferFail { get; set; }
        public StencilOperation CounterClockwiseStencilFail { get; set; }
        public StencilOperation CounterClockwiseStencilFunction { get; set; }
        public StencilOperation CounterClockwiseStencilPass { get; set; }

9.Scissor Test
        public bool ScissorTestEnable { get; set; }

10.MultiSample
        public bool MultiSampleAntiAlias { get; set; }
        public int MultiSampleMask { get; set; }

11.Color Write Channels
        public ColorWriteChannels ColorWriteChannels { get; set; }
        public ColorWriteChannels ColorWriteChannels1 { get; set; }
        public ColorWriteChannels ColorWriteChannels2 { get; set; }
        public ColorWriteChannels ColorWriteChannels3 { get; set; }

12.Texture Wrapping
        public TextureWrapCoordinates Wrap0 { get; set; }
        public TextureWrapCoordinates Wrap1 { get; set; }
        public TextureWrapCoordinates Wrap2 { get; set; }
        public TextureWrapCoordinates Wrap3 { get; set; }
        public TextureWrapCoordinates Wrap4 { get; set; }
        public TextureWrapCoordinates Wrap5 { get; set; }
        public TextureWrapCoordinates Wrap6 { get; set; }
        public TextureWrapCoordinates Wrap7 { get; set; }
        public TextureWrapCoordinates Wrap8 { get; set; }
        public TextureWrapCoordinates Wrap9 { get; set; }
        public TextureWrapCoordinates Wrap10 { get; set; }
        public TextureWrapCoordinates Wrap11 { get; set; }
        public TextureWrapCoordinates Wrap12 { get; set; }
        public TextureWrapCoordinates Wrap13 { get; set; }
        public TextureWrapCoordinates Wrap14 { get; set; }
        public TextureWrapCoordinates Wrap15 { get; set; }


む・・・・・・{ get; set; }はいらなかったかな・・・・・・
セットできないRenderStateに意味は無いわけですし、
セットできてゲットが出来ないプロパティと言うのもあまりないですからね。

       

拍手[0回]

PR