다음을 통해 공유


D3DMMATERIAL (Windows CE 5.0)

Send Feedback

This structure is used to describe the current material.

typedef struct _D3DMMATERIAL {  D3DMCOLORVALUE Diffuse;  D3DMCOLORVALUE Ambient;  D3DMCOLORVALUE Specular;  float          Power;} D3DMMATERIAL;

Members

  • Diffuse
    A D3DMCOLORVALUE structure describing the color of diffuse light that will be reflected from the material.
  • Ambient
    A D3DMCOLORVALUE structure describing the color of ambient light that will be reflected from the material.
  • Specular
    A D3DMCOLORVALUE structure describing the color of specular light that will be reflected from the material.
  • Power
    A float value describing the size of the specular highlight that this material has.

Remarks

The members of the D3DMCOLORVALUE structure are of the type D3DMVALUE. Therefore, they can be either IEEE 32 bit floating point values or 16.16 fixed point values. You must provide the interpretations for these members' values by setting the D3DMFORMAT value in any method calls that use D3DMMATERIAL.

Requirements

OS Versions: Windows CE 5.0 and later.
Header: D3dmtypes.h.

See Also

Direct3D Mobile Structures

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.