Platform SDK: DirectX

Direct3DDevice7.GetTexture

The Direct3DDevice7.GetTexture method retrieves a texture assigned to a given stage for a device.

object.GetTexture(stage As Long) As DirectDrawSurface7

Parameters

object
Object expression that resolves to a Direct3DDevice7 object.
stage
Stage identifier of the texture to 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.

Return Values

If the method succeeds, the return value is the specified texture's DirectDrawSurface7 object.

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