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 SummaryNested classes/interfaces inherited from class com.jme3.texture.TextureTexture.MagFilter, Texture.MinFilter, Texture.ShadowCompareMode, Texture.Type, Texture.WrapAxis, Texture.WrapMode
- 
Constructor SummaryConstructorsConstructorDescriptionCreates 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 SummaryModifier and TypeMethodDescriptioncreateSimpleClone(Texture rVal) Retrieve a basic clone of this Texture (ie, clone everything but the image data, which is shared)booleangetType()getWrap(Texture.WrapAxis axis) getWrapreturns the wrap mode for a given coordinate axis on this texture.voidread(JmeImporter importer) voidsetWrap(Texture.WrapAxis axis, Texture.WrapMode mode) setWrapsets the wrap mode of this texture for a particular axis.voidsetWrap(Texture.WrapMode mode) setWrapsets the wrap mode of this texture for all axis.voidwrite(JmeExporter e) Methods inherited from class com.jme3.texture.Textureclone, getAnisotropicFilter, getImage, getKey, getMagFilter, getMinFilter, getName, getShadowCompareMode, hashCode, setAnisotropicFilter, setImage, setKey, setMagFilter, setMinFilter, setName, setShadowCompareMode, toString
- 
Constructor Details- 
Texture3Dpublic Texture3D()Creates a new two-dimensional texture with default attributes.
- 
Texture3DCreates a new three-dimensional texture using the given image.- Parameters:
- img- The image to use.
 
- 
Texture3DCreates 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 depth
- format- the desired format
- See Also:
 
- 
Texture3DCreates 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 depth
- numSamples- the desired degree of multi-sampling (≥1)
- format- the desired format
- See Also:
 
 
- 
- 
Method Details- 
createSimpleClone- Specified by:
- createSimpleClonein class- Texture
- Returns:
- a new Texture
 
- 
createSimpleCloneDescription copied from class:TextureRetrieve a basic clone of this Texture (ie, clone everything but the image data, which is shared)- Overrides:
- createSimpleClonein class- Texture
- Parameters:
- rVal- storage for the clone (not null, modified)
- Returns:
- Texture
 
- 
setWrapsetWrapsets the wrap mode of this texture for a particular axis.- Specified by:
- setWrapin class- Texture
- 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
 
- 
setWrapsetWrapsets the wrap mode of this texture for all axis.- Specified by:
- setWrapin class- Texture
- Parameters:
- mode- the wrap mode for the given axis of the texture.
- Throws:
- IllegalArgumentException- if mode is null
 
- 
getWrapgetWrapreturns the wrap mode for a given coordinate axis on this texture.- Specified by:
- getWrapin class- Texture
- 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:
- writein interface- Savable
- Overrides:
- writein class- Texture
- Throws:
- IOException
 
- 
read- Specified by:
- readin interface- Savable
- Overrides:
- readin class- Texture
- Throws:
- IOException
 
 
-