Microsoft SDK for Java

stateLightData

This method of the Direct3dExecuteBuffer Class describes the transformation state for the STATELIGHT instruction.

Syntax

public int stateLightData(int flags, int Arg, int bufferindex);

Return Value

Returns the number of 32-bit values added.

Parameters

flags One of the following values:

D3DLIGHTSTATE_MATERIAL

Defines the material used to compute the final color and intensity values during rasterization.

D3DLIGHTSTATE_AMBIENT

Sets the color and intensity of the current ambient light.

D3DLIGHTSTATE_COLORMODEL

One of the D3DCOLORMODEL types.

D3DLIGHTSTATE_FOGMODE

One of the D3DFOGMODE types.

D3DLIGHTSTATE_FOGSTART

Defines the starting value for fog.

D3DLIGHTSTATE_FOGEND

Defines the ending value for fog.

D3DLIGHTSTATE_FOGDENSITY

Defines the density setting for fog.

Arg A value that is dependant on which flag is set.
bufferindex The position in the execute buffer to place the instruction.

Remarks

The execute buffer is treated as an array of 32-bit values, which is a collection of floats and ints that describe vertices and instructions. It is up to the user to manage the position of each item added to the buffer.

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