This method of the Direct3dRM Class creates a texture from an image in memory.
public Direct3dRMTexture createTexture(D3dRMImage image, byte[] buffer1, byte[] pal);
Returns the Direct3dRMTexture object if successful; otherwise, null.
image | A Direct3dRMImage object describing the source for the texture. |
buffer1 | The image buffer. |
pal | The image palette. |
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.