Article ID: 175543
Article Last Modified on 7/13/2004
LPDIRECT3DRM2 lpD3DRM2;
LPDIRECT3DRMTEXTURE2 tex = NULL;
// Query the IDirect3DRM2 interface off of Direct3DRM.
rval = lpD3DRM->lpVtbl->QueryInterface(lpD3DRM,
&IID_IDirect3DRM2,(LPVOID*)&lpD3DRM2);
if (rval != D3DRM_OK)
{
Msg("Failed to obtain the IDirect3DRM2 interface.\n");
goto ret_with_error;
}
// Load the texture with the new interface
rval = lpD3DRM2->lpVtbl->LoadTexture(lpD3DRM2, "test.bmp", &tex);
if (rval != D3DRM_OK)
{
Msg("Failed to load test.bmp.\n");
goto ret_with_error;
}
// Release the IDirect3DRM2 interface
lpD3DRM2->lpVtbl->Release(lpD3DRM2);
Keywords: kbhowto kbdirect3drm kbfaq KB175543