Microsoft DirectX 8.1 (Visual Basic)

Direct3DDevice8.GetTextureStageState

Retrieves a state value for an assigned texture.

object.GetTextureStageState( _ 
    Stage As Long, _ 
    State As CONST_D3DTEXTURESTAGESTATETYPE) As Long

Parts

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

Return Values

Returns the state value.

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.SetTextureStageState, Direct3DDevice8.GetTexture, Direct3DDevice8.SetTexture