Microsoft SDK for Java

loadTexture

This method of the Direct3dRM Class loads a texture from the specified file. This texture can have 8, 24, or 32 bits-per-pixel, and it should be in either the Windows bitmap (.bmp) or Portable Pixmap (.ppm) P6 format.

Syntax

public Direct3dRMTexture loadTexture(String name);

Return Value

Returns the Direct3dRMTexture object if successful; otherwise, null.

Parameters

name The name of the required .bmp or .ppm file.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.