|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.threed.jpct.Texture
com.threed.jpct.NPOTTexture
public class NPOTTexture
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.
Field Summary |
---|
Fields inherited from class com.threed.jpct.Texture |
---|
DEFAULT_HEIGHT, DEFAULT_WIDTH |
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, getHeight, getWidth, isEnabled, keepPixelData, removeAlpha, removeEffect, setAsShadowMap, setClamping, setDepthBuffer, setEffect, setEnabled, setFiltering, setMipmap, 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)
width
- the width of the texture.height
- the height of the texture.col
- the color. Can be null for render targets.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |