Class NPOTTexture

  extended by com.threed.jpct.Texture
      extended by com.threed.jpct.NPOTTexture
All Implemented Interfaces:

public class NPOTTexture
extends Texture

Special class to create a NPOT texture. This can be useful to render a frame buffer into it or similar applications. If possible, power of 2-textures should be prefered though.
The hardware and drivers have to support this. Otherwise, you'll get a black texture.

See Also:
Serialized Form

Field Summary
Fields inherited from class com.threed.jpct.Texture
Constructor Summary
NPOTTexture(int width, int height, RGBColor col)
          Creates a new NPOT texture.
Method Summary
Methods inherited from class com.threed.jpct.Texture
add, applyEffect, compress, defaultTo4bpp, defaultToKeepPixels, defaultToMipmapping, enable4bpp, enableClamping, getArraySize, getDepthBuffer, getExternalId, getHeight, getMemoryUsage, getWidth, isEnabled, keepPixelData, overrideTexelData, removeAlpha, removeEffect, removePixels, setAsShadowMap, setClamping, setDepthBuffer, setEffect, setEnabled, setExternalId, setFiltering, setMipmap, setMipmapMode, setTextureCompression
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public NPOTTexture(int width,
                   int height,
                   RGBColor col)
Creates a new NPOT texture.

width - the width of the texture.
height - the height of the texture.
col - the color. Can be null for render targets.