Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

D3DMMATERIAL

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

This structure is used to describe the current material.


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

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.

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.

Headerd3dmtypes.h
Windows Embedded CEWindows CE 5.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

Show:
© 2015 Microsoft