Microsoft DirectX 8.1 (Visual Basic)

Direct3DDevice8.GetTexture

Retrieves a texture assigned to a stage for a device.

object.GetTexture( _ 
    Stage As Long) As Direct3DBaseTexture8

Parts

object
Object expression that resolves to a Direct3DDevice8 object.
Stage
Stage identifier of the texture to retrieve. Stage identifiers are zero-based. Devices can have up to eight set textures, so the maximum allowable value allowed for Stage is 7.

Return Values

A Direct3DBaseTexture8 object, representing the returned texture.

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