D3DMMATERIAL

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This structure is used to describe the current material.

Syntax

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

Header d3dmtypes.h
Windows Embedded CE Windows CE 5.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

Direct3D Mobile Structures