DirectX编程——RenderState(学习资料)

RenderState Members

The following tables list the members exposed by the RenderState type.

NameDescription
Public PropertyAlphaBlendEnableGets or sets a value to enable alpha-blended transparency. The default value is false.
Public PropertyAlphaBlendOperationGets or sets the arithmetic operation applied to separate alpha blending. The default is BlendFunction.Add.
Public PropertyAlphaDestinationBlendGets or sets the separate alpha channel blending factor. This factor represents a destination value by which to multiply the alpha channel only. The default is Blend.One.
Public PropertyAlphaFunctionGets or sets the comparison function for the alpha test. The default is CompareFunction.Always.
Public PropertyAlphaSourceBlendGets or sets the separate alpha channel blending factor. This factor represents a value by which to multiply the alpha channel only. The default is Blend.One.
Public PropertyAlphaTestEnableGets or sets a render state that enables a per-pixel alpha test. The default value is false.
Public PropertyBlendFactorGets or sets the color used for a constant-blend factor during alpha blending. The default is Color.White.
Public PropertyBlendFunctionGets or sets a value to select the arithmetic operation to apply to the source and destination pixel components when AlphaBlendEnable is set to true. The default is BlendFunction.Add.
Public PropertyColorWriteChannelsGets or sets a value that enables a per-channel write for the render target color buffer. The default value is ColorWriteChannels.None.
Public PropertyColorWriteChannels1Gets or sets a value that enables a per-channel write for the render target color buffer. The default value is ColorWriteChannels.None.
Public PropertyColorWriteChannels2Gets or sets a value that enables a per-channel write for the render target color buffer. The default value is ColorWriteChannels.None.
Public PropertyColorWriteChannels3Gets or sets a value that enables a per-channel write for the render target color buffer. The default value is ColorWriteChannels.None.
Public PropertyCounterClockwiseStencilDepthBufferFailGets or sets the stencil operation to perform if the stencil test passes and the depth-buffer test fails for a counterclockwise triangle. The default is StencilOperation.Keep.
Public PropertyCounterClockwiseStencilFailGets or sets the stencil operation to perform if the stencil test fails for a counterclockwise triangle. The default is StencilOperation.Keep.
Public PropertyCounterClockwiseStencilFunctionGets or sets the comparison function to use for counterclockwise stencil tests. The default is CompareFunction.Always.
Public PropertyCounterClockwiseStencilPassGets or sets the stencil operation to perform if the stencil and z-tests pass for a counterclockwise triangle. The default is StencilOperation.Keep.
Public PropertyCullModeSpecifies how back-facing triangles are culled, if at all. The default value is CullMode.CounterClockwise.
Public PropertyDepthBiasSets or retrieves the depth bias for polygons. The default value is 0.
Public PropertyDepthBufferEnableEnables or disables depth buffering. The default is true.
Public PropertyDepthBufferFunctionGets or sets the comparison function for the depth-buffer test. The default is CompareFunction.LessEqual
Public PropertyDepthBufferWriteEnableEnables or disables writing to the depth buffer. The default is true.
Public PropertyDestinationBlendGets or sets the color blending factor. This factor represents a value by which to multiply the destination pixel color before adding it to the source pixel to produce a color that is a blend of the two. The default is Blend.Zero.
Public PropertyFillModeRepresents the fill mode. The default is FillMode.Solid.
Public PropertyFogColorGets or sets the fog color. The default value is Color.TransparentBlack.
Public PropertyFogDensityGets or sets the fog density for pixel or vertex fog used in exponential fog modes. The default value is 1.0f.
Public PropertyFogEnableEnables or disables fog blending. The default is false.
Public PropertyFogEndGets or sets the depth at which pixel or vertex fog effects end for linear fog mode. The default value is 1.0f.
Public PropertyFogStartGets or sets the depth at which pixel or vertex fog effects begin for linear fog mode. The default value is 0.0f.
Public PropertyFogTableModeGets or sets the fog formula to use for pixel fog. The default is None.
Public PropertyFogVertexModeGets or sets the fog formula to use for vertex fog. The default is FogMode.None.
Public PropertyMultiSampleAntiAliasEnables or disables multisample antialiasing. The default is true.
Public PropertyMultiSampleMaskGets or sets a bitmask controlling modification of the samples in a multisample render target. The default is 0xffffffff.
Public PropertyPointSizeGets or sets the size to use for point size computation in cases where point size is not specified for each vertex. The default value is the value a driver returns. If a driver returns 0 or 1, the default value is 64, which allows software point size emulation.
Public PropertyPointSizeMaxGets or sets the maximum size of point primitives. The default is 64.0f.
Public PropertyPointSizeMinGets or sets the minimum size of point primitives. The default is 1.0f.
Public PropertyPointSpriteEnableEnables or disables full texture mapping on each point. The default is false.
Public PropertyRangeFogEnableGets or sets enabling of range-based vertex fog. The default value is false.
Public PropertyReferenceAlphaSpecifies a reference alpha value against which pixels are tested when alpha testing is enabled. The default value is 0.
Public PropertyReferenceStencilSpecifies a reference value to use for the stencil test. The default is 0.
Public PropertyScissorTestEnableEnables or disables scissor testing. The default is false.
Public PropertySeparateAlphaBlendEnabledEnables or disables the separate blend mode for the alpha channel. The default is false.
Public PropertySlopeScaleDepthBiasGets or sets a value used to determine how much bias can be applied to coplanar primitives to reduce flimmering z-fighting. The default is 0.
Public PropertySourceBlendGets or sets the color blending factor. This factor represents a value by which to multiply the source pixel color before adding it to the destination pixel to produce a color that is a blend of the two. The default is Blend.One.
Public PropertyStencilDepthBufferFailGets or sets the stencil operation to perform if the stencil test passes and the depth-test fails. The default is StencilOperation.Keep.
Public PropertyStencilEnableGets or sets stencil enabling. The default is false.
Public PropertyStencilFailGets or sets the stencil operation to perform if the stencil test fails. The default is StencilOperation.Keep.
Public PropertyStencilFunctionGets or sets the comparison function for the stencil test. The default is CompareFunction.Always.
Public PropertyStencilMaskGets or sets the mask applied to the reference value and each stencil buffer entry to determine the significant bits for the stencil test. The default mask is Int32.MaxValue.
Public PropertyStencilPassGets or sets the stencil operation to perform if the stencil test passes. The default is StencilOperation.Keep.
Public PropertyStencilWriteMaskGets or sets the write mask applied to values written into the stencil buffer. The default mask is Int32.MaxValue.
Public PropertyTwoSidedStencilModeEnables or disables two-sided stenciling. The default is false.
Public PropertyWrap0Gets or sets the texture-wrapping behavior for multiple sets of texture coordinates. The default value for this render state is TextureWrapCoordinates.Zero (wrapping disabled in all directions).
Public PropertyWrap1Gets or sets the texture-wrapping behavior for multiple sets of texture coordinates. The default value for this render state is TextureWrapCoordinates.Zero (wrapping disabled in all directions).
Public PropertyWrap10Gets or sets the texture-wrapping behavior for multiple sets of texture coordinates. The default value for this render state is TextureWrapCoordinates.Zero (wrapping disabled in all directions).
Public PropertyWrap11Gets or sets the texture-wrapping behavior for multiple sets of texture coordinates. The default value for this render state is TextureWrapCoordinates.Zero (wrapping disabled in all directions).
Public PropertyWrap12Gets or sets the texture-wrapping behavior for multiple sets of texture coordinates. The default value for this render state is TextureWrapCoordinates.Zero (wrapping disabled in all directions).
Public PropertyWrap13Gets or sets the texture-wrapping behavior for multiple sets of texture coordinates. The default value for this render state is TextureWrapCoordinates.Zero (wrapping disabled in all directions).
Public PropertyWrap14Gets or sets the texture-wrapping behavior for multiple sets of texture coordinates. The default value for this render state is TextureWrapCoordinates.Zero (wrapping disabled in all directions).
Public PropertyWrap15Gets or sets the texture-wrapping behavior for multiple sets of texture coordinates. The default value for this render state is TextureWrapCoordinates.Zero (wrapping disabled in all directions).
Public PropertyWrap2Gets or sets the texture-wrapping behavior for multiple sets of texture coordinates. The default value for this render state is TextureWrapCoordinates.Zero (wrapping disabled in all directions).
Public PropertyWrap3Gets or sets the texture-wrapping behavior for multiple sets of texture coordinates. The default value for this render state is TextureWrapCoordinates.Zero (wrapping disabled in all directions).
Public PropertyWrap4Gets or sets the texture-wrapping behavior for multiple sets of texture coordinates. The default value for this render state is TextureWrapCoordinates.Zero (wrapping disabled in all directions).
Public PropertyWrap5Gets or sets the texture-wrapping behavior for multiple sets of texture coordinates. The default value for this render state is TextureWrapCoordinates.Zero (wrapping disabled in all directions).
Public PropertyWrap6Gets or sets the texture-wrapping behavior for multiple sets of texture coordinates. The default value for this render state is TextureWrapCoordinates.Zero (wrapping disabled in all directions).
Public PropertyWrap7Gets or sets the texture-wrapping behavior for multiple sets of texture coordinates. The default value for this render state is TextureWrapCoordinates.Zero (wrapping disabled in all directions).
Public PropertyWrap8Gets or sets the texture-wrapping behavior for multiple sets of texture coordinates. The default value for this render state is TextureWrapCoordinates.Zero (wrapping disabled in all directions).
Public PropertyWrap9Gets or sets the texture-wrapping behavior for multiple sets of texture coordinates. The default value for this render state is TextureWrapCoordinates.Zero (wrapping disabled in all directions).
NameDescription
Public MethodEquals(Inherited from Object.)
Public MethodGetHashCode(Inherited from Object.)
Public MethodGetType(Inherited from Object.)
Public MethodReferenceEquals(Inherited from Object.)
Public MethodToStringRetrieves a string representation of this object.
NameDescription
Protected MethodFinalize(Inherited from Object.)
Protected MethodMemberwiseClone(Inherited from Object.)

转载于:https://www.cnblogs.com/wuhenke/archive/2009/12/22/1630071.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值