This method of the Direct3dExecuteBuffer Class describes the transformation state for the STATELIGHT instruction.
public int stateLightData(int flags, int Arg, int bufferindex);
Returns the number of 32-bit values added.
flags | One of the following values:
Defines the material used to compute the final color and intensity values during rasterization. Sets the color and intensity of the current ambient light. One of the D3DCOLORMODEL types. One of the D3DFOGMODE types. Defines the starting value for fog. Defines the ending value for fog. 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. |
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.