Microsoft DirectX 8.1 (Visual Basic)

Direct3DDevice8.SetTextureStageState

Sets the state value for the currently assigned texture.

object.SetTextureStageState( _ 
    Stage As Long, _ 
    Type As CONST_D3DTEXTURESTAGESTATETYPE, _ 
    Value As Long)

Parts

object
Object expression that resolves to a Direct3DDevice8 object.
Stage
Stage identifier of the texture for which the state value is set. Stage identifiers are zero-based. Devices can have up to eight set textures, so the maximum allowable value allowed for Stage is 7.
Type
Texture state to set. This parameter can be any member of the CONST_D3DTEXTURESTAGESTATETYPE enumeration.
Value
State value to set. The meaning of this value is determined by the Type parameter.

Error Codes

If the method fails, an error is raised and Err.Number can be set to D3DERR_INVALIDCALL.

For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.

See Also

Direct3DDevice8.GetTextureStageState, Direct3DDevice8.GetTexture, Direct3DDevice8.SetTexture