Package com.jme3.texture
Class Texture3D
java.lang.Object
com.jme3.texture.Texture
com.jme3.texture.Texture3D
- All Implemented Interfaces:
CloneableSmartAsset
,Savable
,Cloneable
-
Nested Class Summary
Nested classes/interfaces inherited from class com.jme3.texture.Texture
Texture.MagFilter, Texture.MinFilter, Texture.ShadowCompareMode, Texture.Type, Texture.WrapAxis, Texture.WrapMode
-
Constructor Summary
ConstructorDescriptionCreates a new two-dimensional texture with default attributes.Texture3D
(int width, int height, int depth, int numSamples, Image.Format format) Creates a new three-dimensional texture for the purpose of offscreen rendering.Texture3D
(int width, int height, int depth, Image.Format format) Creates a new three-dimensional texture for the purpose of offscreen rendering.Creates a new three-dimensional texture using the given image. -
Method Summary
Modifier and TypeMethodDescriptioncreateSimpleClone
(Texture rVal) Retrieve a basic clone of this Texture (ie, clone everything but the image data, which is shared)boolean
getType()
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) Methods inherited from class com.jme3.texture.Texture
clone, getAnisotropicFilter, getImage, getKey, getMagFilter, getMinFilter, getName, getShadowCompareMode, hashCode, setAnisotropicFilter, setImage, setKey, setMagFilter, setMinFilter, setName, setShadowCompareMode, toString
-
Constructor Details
-
Texture3D
public Texture3D()Creates a new two-dimensional texture with default attributes. -
Texture3D
Creates a new three-dimensional texture using the given image.- Parameters:
img
- The image to use.
-
Texture3D
Creates a new three-dimensional texture for the purpose of offscreen rendering.- Parameters:
width
- the desired width (in pixels)height
- the desired height (in pixels)depth
- the desired depthformat
- the desired format- See Also:
-
Texture3D
Creates a new three-dimensional texture for the purpose of offscreen rendering.- Parameters:
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 format- See Also:
-
-
Method Details
-
createSimpleClone
- Specified by:
createSimpleClone
in classTexture
- Returns:
- a new Texture
-
createSimpleClone
Description copied from class:Texture
Retrieve a basic clone of this Texture (ie, clone everything but the image data, which is shared)- Overrides:
createSimpleClone
in classTexture
- Parameters:
rVal
- storage for the clone (not null, modified)- Returns:
- Texture
-
setWrap
setWrap
sets the wrap mode of this texture for a particular axis.- Specified by:
setWrap
in classTexture
- Parameters:
axis
- the texture axis to apply wrap mode to.mode
- the wrap mode for the given axis of the texture.- Throws:
IllegalArgumentException
- if axis or mode are null
-
setWrap
setWrap
sets the wrap mode of this texture for all axis.- Specified by:
setWrap
in classTexture
- Parameters:
mode
- the wrap mode for the given axis of the texture.- Throws:
IllegalArgumentException
- if mode is null
-
getWrap
getWrap
returns the wrap mode for a given coordinate axis on this texture.- Specified by:
getWrap
in classTexture
- Parameters:
axis
- the axis to return for- Returns:
- the wrap mode of the texture.
- Throws:
IllegalArgumentException
- if axis is null
-
getType
-
equals
-
write
- Specified by:
write
in interfaceSavable
- Overrides:
write
in classTexture
- Throws:
IOException
-
read
- Specified by:
read
in interfaceSavable
- Overrides:
read
in classTexture
- Throws:
IOException
-