Platform SDK: DirectX

Direct3DDevice7.GetTextureStageStateSingle

The Direct3DDevice7.GetTextureStageStateSingle method retrieves a state value for a currently assigned texture, as type Single.

object.GetTextureStageStateSingle( _ 
    stage As Long, _ 
    state As CONST_D3DTEXTURESTAGESINGLE) As Single

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 stage state to be retrieved. This parameter can be any constant of the CONST_D3DTEXTURESTAGESINGLE 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.SetTextureStageStateSingle, Direct3DDevice7.GetTexture, Direct3DDevice7.SetTexture, Textures