次の方法で共有


About Render States (Windows CE 5.0)

Send Feedback

Device render states control the behavior of the Microsoft® Direct3D® Mobile device's rasterization module. They do this by altering the attributes of the rendering state, what type of shading is used, fog attributes, and other rasterizer operations.

Applications control the characteristics of the rendering state by invoking the IDirect3DMobileDevice::SetRenderState method. The D3DMRENDERSTATETYPE enumerated type specifies all possible rendering states. Your application passes a value from the D3DMRENDERSTATETYPE enumeration as the first parameter to the SetRenderState method.

Fixed function vertex processing is controlled by the SetRenderState method and the following device render states (see D3DMRENDERSTATETYPE):

  • D3DMRS_SPECULARENABLE
  • D3DMRS_FOGSTART
  • D3DMRS_FOGEND
  • D3DMRS_FOGDENSITY
  • D3DMRS_RANGEFOGENABLE
  • D3DMRS_LIGHTING
  • D3DMRS_AMBIENT
  • D3DMRS_FOGVERTEXMODE
  • D3DMRS_COLORVERTEX
  • D3DMRS_LOCALVIEWER
  • D3DMRS_NORMALIZENORMALS
  • D3DMRS_DIFFUSEMATERIALSOURCE
  • D3DMRS_SPECULARMATERIALSOURCE
  • D3DMRS_AMBIENTMATERIALSOURCE

In addition, the fixed-function vertex processing pipeline uses the following methods to set transforms, materials, and lights:

See Also

Render States

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.