|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.opengl.renderer.Texture
com.threerings.opengl.renderer.TextureCubeMap
public class TextureCubeMap
A cube map texture.
| Field Summary | |
|---|---|
protected int |
_size
The size (width and height) of each face. |
static int[] |
FACE_TARGETS
The targets for each face. |
| Fields inherited from class com.threerings.opengl.renderer.Texture |
|---|
_borderColor, _bytes, _compareFunc, _compareMode, _depthMode, _format, _generateMipmaps, _id, _magFilter, _maxAnisotropy, _minFilter, _renderer, _target, _vbuf, _wrapR, _wrapS, _wrapT, COMPRESSED_FORMATS, FORMATS |
| Constructor Summary | |
|---|---|
TextureCubeMap(Renderer renderer)
Creates a new texture. |
|
| Method Summary | |
|---|---|
int |
getHeight()
Returns the height of the texture. |
int |
getWidth()
Returns the width of the texture. |
void |
setCompressedImage(int target,
int level,
int format,
int size,
boolean border,
ByteBuffer data)
Sets a single compressed mipmap level of a single face of this texture. |
void |
setImage(int target,
int level,
int format,
int size,
boolean border,
int dformat,
int dtype,
ByteBuffer data)
Sets a single mipmap level of a single face of this texture. |
void |
setImages(int format,
boolean border,
BufferedImage[] images,
boolean premultiply,
boolean rescale,
boolean mipmap)
Sets this texture to the supplied images. |
void |
setImages(int format,
boolean border,
BufferedImage image,
int sdivs,
int tdivs,
boolean premultiply,
boolean rescale,
boolean mipmap)
Sets this texture to the supplied image. |
void |
setImages(int format,
int size,
boolean border,
boolean mipmap)
Sets this texture to a set of empty images with the specified format and dimension. |
void |
setImages(int level,
int format,
boolean border,
BufferedImage[] images,
boolean premultiply,
boolean rescale)
Sets a single mipmap level of this texture. |
void |
setImages(int level,
int format,
boolean border,
BufferedImage image,
int sdivs,
int tdivs,
boolean premultiply,
boolean rescale)
Sets a single mipmap level of this texture. |
void |
setImages(int level,
int format,
int size,
boolean border)
Sets a single mipmap level of this texture. |
| Methods inherited from class com.threerings.opengl.renderer.Texture |
|---|
delete, finalize, generateMipmap, getData, getDepth, getFormat, getFormat, getId, getInternalFormat, getTarget, getTotalBytes, halveImage, hasAlpha, isDepth, setBorderColor, setBytes, setCompare, setCompareFunc, setCompareMode, setDepthMode, setFilters, setGenerateMipmaps, setMagFilter, setMaxAnisotropy, setMinFilter, setMipmapBytes, setWrap, setWrap, setWrapR, setWrapS, setWrapT |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int[] FACE_TARGETS
protected int _size
| Constructor Detail |
|---|
public TextureCubeMap(Renderer renderer)
| Method Detail |
|---|
public void setImages(int format,
int size,
boolean border,
boolean mipmap)
mipmap - if true, generate a complete mipmap chain.
public void setImages(int level,
int format,
int size,
boolean border)
public void setImage(int target,
int level,
int format,
int size,
boolean border,
int dformat,
int dtype,
ByteBuffer data)
public void setCompressedImage(int target,
int level,
int format,
int size,
boolean border,
ByteBuffer data)
public void setImages(int format,
boolean border,
BufferedImage[] images,
boolean premultiply,
boolean rescale,
boolean mipmap)
mipmap - if true, generate a complete mipmap chain.
public void setImages(int level,
int format,
boolean border,
BufferedImage[] images,
boolean premultiply,
boolean rescale)
public void setImages(int format,
boolean border,
BufferedImage image,
int sdivs,
int tdivs,
boolean premultiply,
boolean rescale,
boolean mipmap)
mipmap - if true, generate a complete mipmap chain.
public void setImages(int level,
int format,
boolean border,
BufferedImage image,
int sdivs,
int tdivs,
boolean premultiply,
boolean rescale)
public int getWidth()
Texture
getWidth in class Texturepublic int getHeight()
Texture
getHeight in class Texture
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||