Packages
 In this topic

*Methods

 

Packages   PreviousThis PackageNext
Package com.ms.directX   Previous This
Package
Next

 


Interface ILoadTextureCallback

public interface ILoadTextureCallback extends IUnknown
{
  // Methods
  public Direct3dRMTexture callbackLoadTexture(String text_name,
        IUnknown pArgs);
}

Use with methods, such as Direct3dRM.loadFromFileByPos to set the callback function to be called when loading a texture.

Also see com.ms.directX.Direct3dRM, com.ms.directX.Direct3dRMAnimation, com.ms.directX.Direct3dRMFrame, com.ms.directX.Direct3dRMMeshBuilder

IUnknown
  |
  +--ILoadTextureCallback

Methods

callbackLoadTexture

public Direct3dRMTexture callbackLoadTexture(String text_name,
        IUnknown pArgs);

Loads texture maps from a file. This callback function is application-defined.

Return Value:

Returns the Direct3dRMTexture object if successful; otherwise, returns null.

ParameterDescription
text_name The name of the texture.
pArgs The application-specific data.

Remarks:

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.

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.