Microsoft DirectX 8.1 (Visual Basic) |
Creates a texture from a resource.
object.CreateTextureFromResource( _ Device As Direct3DDevice8, _ hModule As Long, _ SrcResource As String) As Direct3DTexture8
Direct3DTexture8 object representing the created texture object.
If the method fails, an error is raised and Err.Number can be set to one of the following values.
D3DERR_INVALIDCALL |
D3DERR_NOTAVAILABLE |
D3DERR_OUTOFVIDEOMEMORY |
D3DXERR_INVALIDDATA |
E_OUTOFMEMORY |
For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.
Note that a resource created with this function will be placed in the memory class denoted by the D3DPOOL_MANAGED member of the CONST_D3DPOOL enumerated type.