Platform SDK: DirectX |
The Direct3DDevice7.GetTexture method retrieves a texture assigned to a given stage for a device.
object.GetTexture(stage As Long) As DirectDrawSurface7
If the method succeeds, the return value is the specified texture's DirectDrawSurface7 object.
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.
Direct3DDevice7.SetTexture, Direct3DDevice7.GetTextureStageState, Direct3DDevice7.SetTextureStageState, Textures