The D3DCOLORMODEL constant defines the color model in which the system will run. A driver can expose either or both flags in the dcmColorModel member of the D3DDEVICEDESC structure.
typedef DWORD D3DCOLORMODEL
Values
Use a monochromatic model (or ramp model). In this model, the blue component of a vertex color is used to define the brightness of a lit vertex.
Use a full RGB model.
Remarks
Prior to DirectX 5, these values were part of an enumerated type. This was not correct, because they are bit flags. The enumerated type in earlier versions of DirectX had this syntax:
typedef enum _D3DCOLORMODEL {
D3DCOLOR_MONO = 1,
D3DCOLOR_RGB = 2,
} D3DCOLORMODEL;
QuickInfo
Windows NT: Use version 4.0 or later.
Windows: Use Windows 95 or later. Available as a redistributable for Windows 95.
Windows CE: Unsupported.
Header: Declared in d3dtypes.h.
See Also