Microsoft SDK for Java

Direct3dRMTexture Class

Applications use the methods of the Direct3dRMTexture Class of the com.ms.directX package to work with textures, which are rectangular arrays of pixels.

public class Direct3dRMTexture implements IDirect3dRMTexture
{
  // Methods
  public void changed(int pixels, int palette);
  public int getColors();
  public void getDecalOrigin(int[] x, int[] y);
  public int getDecalScale();
  public void getDecalSize(float[] w, float[] h);
  public int getDecalTransparency();
  public int getDecalTransparentColor();
  public Direct3dRMImage getImage();
  public void getImageBuffer(byte[] buffer1);
  public void getImagePalette(byte[] pal);
  public int getShades();
  public void setColors(int c);
  public void setDecalOrigin(int x, int y);
  public void setDecalScale(int s);
  public void setDecalSize(float width, float height);
  public void setDecalTransparency(int trans);
  public void setDecalTransparentColor(int tcolor);
  public void setShades(int s);
}

The Direct3dRMTexture class inherits the following methods from the Direct3dRMObject class:

addDestroyCallback
duplicate
deleteDestroyCallback
getAppData
getClassName
getName
setAppData
setName

The Direct3dRMTexture object is obtained by calling the createTexture method.

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