Microsoft DirectX 9.0 SDK Update (October 2004)

ColorSource Enumeration

Language:

Note: This documentation is preliminary and is subject to change.

Defines the location at which a color or color component must be accessed for lighting calculations.

Definition

Visual Basic .NET Public Enum ColorSource
C# public enum ColorSource
Managed C++ __value public enum ColorSource
JScript .NET public enum ColorSource

Members

Member Value Description
Color2 2 Use the specular vertex color.
Color1 1 Use the diffuse vertex color.
Material 0 Use the color from the current material.

Remarks

This enumeration is used to set the DiffuseMaterialSource, EmissiveMaterialSource, SpecularMaterialSource, and AmbientMaterialSource properties in the RenderStateManager class type.

Enumeration Information

Namespace Microsoft.DirectX.Direct3D
Assembly Microsoft.DirectX.Direct3D (microsoft.directx.direct3d.dll)
Strong Name Microsoft.DirectX.Direct3D,  Version=1.0.2902.0,  Culture=neutral,  PublicKeyToken=31bf3856ad364e35

© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center