public class Texture3D extends Texture
Texture.MagFilter, Texture.MinFilter, Texture.ShadowCompareMode, Texture.Type, Texture.WrapAxis, Texture.WrapMode
Constructor and Description |
---|
Texture3D()
Creates a new two-dimensional texture with default attributes.
|
Texture3D(Image img)
Creates a new three-dimensional texture using the given image.
|
Texture3D(int width,
int height,
int depth,
Image.Format format)
Creates a new three-dimensional texture for the purpose of offscreen
rendering.
|
Texture3D(int width,
int height,
int depth,
int numSamples,
Image.Format format)
Creates a new three-dimensional texture for the purpose of offscreen
rendering.
|
Modifier and Type | Method and Description |
---|---|
Texture |
createSimpleClone() |
Texture |
createSimpleClone(Texture rVal)
Retrieve a basic clone of this Texture (ie, clone everything but the
image data, which is shared)
|
boolean |
equals(java.lang.Object other) |
Texture.Type |
getType() |
Texture.WrapMode |
getWrap(Texture.WrapAxis axis)
getWrap returns the wrap mode for a given coordinate axis
on this texture. |
void |
read(JmeImporter importer) |
void |
setWrap(Texture.WrapAxis axis,
Texture.WrapMode mode)
setWrap sets the wrap mode of this texture for a
particular axis. |
void |
setWrap(Texture.WrapMode mode)
setWrap sets the wrap mode of this texture for all axis. |
void |
write(JmeExporter e) |
clone, getAnisotropicFilter, getImage, getKey, getMagFilter, getMinFilter, getName, getShadowCompareMode, hashCode, setAnisotropicFilter, setImage, setKey, setMagFilter, setMinFilter, setName, setShadowCompareMode, toString
public Texture3D()
public Texture3D(Image img)
img
- The image to use.public Texture3D(int width, int height, int depth, Image.Format format)
width
- the desired width (in pixels)height
- the desired height (in pixels)depth
- the desired depthformat
- the desired formatFrameBuffer
public Texture3D(int width, int height, int depth, int numSamples, Image.Format format)
width
- the desired width (in pixels)height
- the desired height (in pixels)depth
- the desired depthnumSamples
- the desired degree of multi-sampling (≥1)format
- the desired formatFrameBuffer
public Texture createSimpleClone()
createSimpleClone
in class Texture
public Texture createSimpleClone(Texture rVal)
Texture
createSimpleClone
in class Texture
rVal
- storage for the clone (not null, modified)public void setWrap(Texture.WrapAxis axis, Texture.WrapMode mode)
setWrap
sets the wrap mode of this texture for a
particular axis.public void setWrap(Texture.WrapMode mode)
setWrap
sets the wrap mode of this texture for all axis.public Texture.WrapMode getWrap(Texture.WrapAxis axis)
getWrap
returns the wrap mode for a given coordinate axis
on this texture.public Texture.Type getType()
public void write(JmeExporter e) throws java.io.IOException
public void read(JmeImporter importer) throws java.io.IOException