HRESULT (*D3DRMLOADTEXTURECALLBACK) (char *tex_name, void *lpArg,
LPDIRECT3DRMTEXTURE *lpD3DRMTex);
Loads texture maps from a file or resource named in a call to one of the Load methods. This callback function is application-defined.
ˇShould return D3DRM_OK if successful, or an error otherwise. For a list of possible return codes, see Direct3D Retained-Mode Return Values.
tex_name
Address of a string containing the name of the texture.
lpArg
Address of application-specific data.
lpD3DRMTex
Address of the Direct3DRMTexture object.
Applications can use this callback function to implement support for textures that are not in the Windows bitmap (.bmp) or Portable Pixmap (.ppm) P6 format.
When determining the order in which to call callback functions, the system searches the objects highest in the hierarchy first, and then calls their callback functions in the order in which they were created.