Microsoft SDK for Java

createTexture

This method of the Direct3dRM Class creates a texture from an image in memory.

Syntax

public Direct3dRMTexture createTexture(D3dRMImage image, byte[] buffer1, byte[] pal);

Return Value

Returns the Direct3dRMTexture object if successful; otherwise, null.

Parameters

image A Direct3dRMImage object describing the source for the texture.
buffer1 The image buffer.
pal The image palette.

Remarks

The memory associated with the image is used each time the texture is rendered (rather than the memory being copied into Direct3dRM's buffers). This allows the image to be used both as a rendering target and as a texture.

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