IDirect3DRM2::LoadTextureFromResource
Loads a Direct3DRMTexture2 texture from a specified resource.
HRESULT LoadTextureFromResource(
HMODULE hModule,
LPCTSTR strName,
LPCTSTR strType,
LPDIRECT3DRMTEXTURE2 * lplpD3DRMTexture
);
Parameters
hModule
Handle of the module whose executable file contains the resource.
strName
A null-terminated string specifying the name of the resource to be used as the texture.
strType
A null-terminated string specifying the type name of the resource. This parameter can be one of the following resource types or a user-defined type:
Value | Meaning |
RT_BITMAP | Bitmap reource |
RT_RCDATA | Application-defined resource (raw data) |
lplpD3DRMTexture
Address of a pointer to be initialized with a valid IDirect3DRMTexture2 object if the call succeeds.
Return Values
Returns D3DRM_OK if successful, or an error otherwise. For a list of possible return codes, see Direct3D Retained-Mode Return Values.