Platform SDK: DirectX

Direct3DDevice7.GetTextureStageState

The Direct3DDevice7.GetTextureStageState method retrieves a state value for a currently assigned texture.

object.GetTextureStageState( _ 
    stage As Long, _ 
    state As CONST_D3DTEXTURESTAGESTATETYPE) As Long

Parameters

object
Object expression that resolves to a Direct3DDevice7 object.
stage
Stage identifier of the texture for which the state will be retrieved. Stage identifiers are zero-based. Currently, devices can have up to 8 set textures, so the maximum allowable value for stage is 7.
state
Texture state to be retrieved. This parameter can be any constant of the CONST_D3DTEXTURESTAGESTATETYPE enumeration.

Return Values

If the method succeeds, the return value is the state value.

Error Codes

If the method fails, an error is raised and Err.Number may be set to one of the following values:

DDERR_INVALIDOBJECT
DDERR_INVALIDPARAMS

For information on trapping errors, see the Visual Basic Error Trapping topic.

See Also

Direct3DDevice7.SetTextureStageState, Direct3DDevice7.GetTexture, Direct3DDevice7.SetTexture, Textures