IDirect3DRM::CreateTextureFromSurface
Creates a texture from a specified DirectDraw surface.
HRESULT CreateTextureFromSurface(
LPDIRECTDRAWSURFACE lpDDS,
LPDIRECT3DRMTEXTURE * lplpD3DRMTexture
);
Parameters
lpDDS
Address of the DirectDrawSurface object containing the texture.
lplpD3DRMTexture
Address that will be filled with a pointer to an IDirect3DRMTexture 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.