ColorValueFixed Structure

Stores the red, green, blue, and alpha channel values, in a fixed-point structure, that together define a specific color.

Namespace: Microsoft.WindowsMobile.DirectX.Direct3D
Assembly: Microsoft.WindowsMobile.DirectX (in microsoft.windowsmobile.directx.dll)

public struct ColorValueFixed
public final class ColorValueFixed extends ValueType
JScript suports the use of structures, but not the declaration of new ones.

The following code example shows how to use a ColorValueFixed structure.

// This code example is taken from the
// Managed Direct3D Mobile Fixed-Point Lighting Sample
// in the .NET Compact Framework Samples
// in the .NET Framework SDK.

// Set light #0 to be a simple, faint grey directional light so
// the walls and floor are slightly different shades of grey
device.LightsFixed[0].Type = LightType.Directional;
device.LightsFixed[0].Direction = new Vector3Fixed(0.3f, -0.5f,
device.LightsFixed[0].DiffuseColor =
    64, 64));
        // Set light #1 to be a simple, bright directional light to use
        // on the mesh representing light #2
        device.LightsFixed[1].Type = LightType.Directional;
        device.LightsFixed[1].Direction =
            new Vector3Fixed(0.5f, -0.5f, 0.5f);
        device.LightsFixed[1].DiffuseColor =

        // Light #2 will be the light used to light the floor and
        // walls.  It will be set up in FrameMove() since it changes
        // every frame.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Compact Framework

Supported in: 2.0