Creates a texture from an image in memory.
HRESULT CreateTexture(
LPD3DRMIMAGE lpImage,
LPDIRECT3DRMTEXTURE2* lplpD3DRMTexture2
);
Parameters
lpImage
Address of a D3DRMIMAGE structure describing the source for the texture.
lplpD3DRMTexture2
Address that will be filled with a pointer to an IDirect3DRMTexture2 interface 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.
Remarks
The memory associated with the image is used each time the texture is rendered, rather than the memory being copied into Direct3DRM's buffers. This allows the image to be used both as a rendering target and as a texture.