This method of the ILoadTextureCallback Interface loads texture maps from a file. This callback function is application-defined.
public Direct3dRMTexture callbackLoadTexture(String text_name, IUnknown pArgs);
Returns the Direct3dRMTexture object if successful; otherwise, returns null.
text_name | The name of the texture. |
pArgs | The application-specific data. |
Applications can use this callback function to implement support for textures that are not in the Microsoft® 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.