|
|||||||||
| 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.Texture3D
public class Texture3D
A three-dimensional texture.
| Field Summary | |
|---|---|
protected int |
_depth
The dimensions of the texture. |
protected int |
_height
The dimensions of the texture. |
protected int |
_width
The dimensions of the texture. |
| 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 | |
|---|---|
Texture3D(Renderer renderer)
Creates a new texture. |
|
| Method Summary | |
|---|---|
void |
copySubImage(int level,
int xoffset,
int yoffset,
int zoffset,
int x,
int y,
int width,
int height)
Copies part of the read buffer to the texture. |
int |
getDepth()
Returns the depth of the texture. |
int |
getHeight()
Returns the height of the texture. |
int |
getWidth()
Returns the width of the texture. |
void |
setImage(int level,
int format,
boolean border,
BufferedImage image,
int sdivs,
int tdivs,
int depth,
boolean premultiply,
boolean rescale)
Sets a single mipmap level of this texture. |
void |
setImage(int format,
int width,
int height,
int depth,
boolean border,
boolean mipmap)
Sets this texture to an empty image with the specified format and dimensions. |
void |
setImage(int level,
int format,
int width,
int height,
int depth,
boolean border)
Sets a single mipmap level of this texture. |
void |
setImage(int level,
int format,
int width,
int height,
int depth,
boolean border,
int dformat,
int dtype,
ByteBuffer data)
Sets a single mipmap level of this texture. |
void |
setImages(int format,
boolean border,
BufferedImage image,
int sdivs,
int tdivs,
int depth,
boolean premultiply,
boolean rescale,
boolean mipmap)
Sets this texture to the supplied image. |
| Methods inherited from class com.threerings.opengl.renderer.Texture |
|---|
delete, finalize, generateMipmap, getData, 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 |
|---|
protected int _width
protected int _height
protected int _depth
| Constructor Detail |
|---|
public Texture3D(Renderer renderer)
| Method Detail |
|---|
public void setImage(int format,
int width,
int height,
int depth,
boolean border,
boolean mipmap)
mipmap - if true, generate a complete mipmap chain.
public void setImage(int level,
int format,
int width,
int height,
int depth,
boolean border)
public void setImage(int level,
int format,
int width,
int height,
int depth,
boolean border,
int dformat,
int dtype,
ByteBuffer data)
public void setImages(int format,
boolean border,
BufferedImage image,
int sdivs,
int tdivs,
int depth,
boolean premultiply,
boolean rescale,
boolean mipmap)
mipmap - if true, generate a complete mipmap chain.
public void setImage(int level,
int format,
boolean border,
BufferedImage image,
int sdivs,
int tdivs,
int depth,
boolean premultiply,
boolean rescale)
public void copySubImage(int level,
int xoffset,
int yoffset,
int zoffset,
int x,
int y,
int width,
int height)
public int getWidth()
Texture
getWidth in class Texturepublic int getHeight()
Texture
getHeight in class Texturepublic int getDepth()
Texture
getDepth in class Texture
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||