com.jme3.texture
クラス Texture

java.lang.Object
  上位を拡張 com.jme3.texture.Texture
すべての実装されたインタフェース:
Asset, Savable, java.lang.Cloneable
直系の既知のサブクラス:
Texture2D, Texture3D, TextureCubeMap

public abstract class Texture
extends java.lang.Object
implements Asset, Savable, java.lang.Cloneable

Texture defines a texture object to be used to display an image on a piece of geometry. The image to be displayed is defined by the Image class. All attributes required for texture mapping are contained within this class. This includes mipmapping if desired, magnificationFilter options, apply options and correction options. Default values are as follows: minificationFilter - NearestNeighborNoMipMaps, magnificationFilter - NearestNeighbor, wrap - EdgeClamp on S,T and R, apply - Modulate, enivoronment - None.

関連項目:
Image

入れ子のクラスの概要
static class Texture.MagFilter
           
static class Texture.MinFilter
           
static class Texture.ShadowCompareMode
          If this texture is a depth texture (the format is Depth*) then this value may be used to compare the texture depth to the R texture coordinate.
static class Texture.Type
           
static class Texture.WrapAxis
           
static class Texture.WrapMode
           
 
コンストラクタの概要
Texture()
          Constructor instantiates a new Texture object with default attributes.
 
メソッドの概要
 Texture clone()
           
abstract  Texture createSimpleClone()
           
 Texture createSimpleClone(Texture rVal)
          Retreive a basic clone of this Texture (ie, clone everything but the image data, which is shared)
 boolean equals(java.lang.Object obj)
           
 int getAnisotropicFilter()
           
 Image getImage()
          getImage returns the image data that makes up this texture.
 AssetKey getKey()
           
 Texture.MagFilter getMagFilter()
           
 Texture.MinFilter getMinFilter()
           
 java.lang.String getName()
           
 Texture.ShadowCompareMode getShadowCompareMode()
           
abstract  Texture.Type getType()
           
abstract  Texture.WrapMode getWrap(Texture.WrapAxis axis)
          getWrap returns the wrap mode for a given coordinate axis on this texture.
 int hashCode()
           
 void read(JmeImporter e)
           
 void setAnisotropicFilter(int level)
           
 void setImage(Image image)
          setImage sets the image object that defines the texture.
 void setKey(AssetKey key)
           
 void setMagFilter(Texture.MagFilter magnificationFilter)
           
 void setMinFilter(Texture.MinFilter minificationFilter)
           
 void setName(java.lang.String name)
           
 void setShadowCompareMode(Texture.ShadowCompareMode compareMode)
           
abstract  void setWrap(Texture.WrapAxis axis, Texture.WrapMode mode)
          setWrap sets the wrap mode of this texture for a particular axis.
abstract  void setWrap(Texture.WrapMode mode)
          setWrap sets the wrap mode of this texture for all axis.
 java.lang.String toString()
           
 void write(JmeExporter e)
           
 
クラス java.lang.Object から継承されたメソッド
getClass, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

Texture

public Texture()
Constructor instantiates a new Texture object with default attributes.

メソッドの詳細

clone

public Texture clone()
オーバーライド:
クラス java.lang.Object 内の clone
戻り値:

getMinFilter

public Texture.MinFilter getMinFilter()
戻り値:
the MinificationFilterMode of this texture.

setMinFilter

public void setMinFilter(Texture.MinFilter minificationFilter)
パラメータ:
minificationFilter - the new MinificationFilterMode for this texture.
例外:
java.lang.IllegalArgumentException - if minificationFilter is null

getMagFilter

public Texture.MagFilter getMagFilter()
戻り値:
the MagnificationFilterMode of this texture.

setMagFilter

public void setMagFilter(Texture.MagFilter magnificationFilter)
パラメータ:
magnificationFilter - the new MagnificationFilter for this texture.
例外:
java.lang.IllegalArgumentException - if magnificationFilter is null

getShadowCompareMode

public Texture.ShadowCompareMode getShadowCompareMode()
戻り値:
The ShadowCompareMode of this texture.
関連項目:
Texture.ShadowCompareMode

setShadowCompareMode

public void setShadowCompareMode(Texture.ShadowCompareMode compareMode)
パラメータ:
compareMode - the new ShadowCompareMode for this texture.
例外:
java.lang.IllegalArgumentException - if compareMode is null
関連項目:
Texture.ShadowCompareMode

setImage

public void setImage(Image image)
setImage sets the image object that defines the texture.

パラメータ:
image - the image that defines the texture.

setKey

public void setKey(AssetKey key)
定義:
インタフェース Asset 内の setKey
パラメータ:
key - The texture key that was used to load this texture

getKey

public AssetKey getKey()
定義:
インタフェース Asset 内の getKey

getImage

public Image getImage()
getImage returns the image data that makes up this texture. If no image data has been set, this will return null.

戻り値:
the image data that makes up the texture.

setWrap

public abstract void setWrap(Texture.WrapAxis axis,
                             Texture.WrapMode mode)
setWrap sets the wrap mode of this texture for a particular axis.

パラメータ:
axis - the texture axis to define a wrapmode on.
mode - the wrap mode for the given axis of the texture.
例外:
java.lang.IllegalArgumentException - if axis or mode are null or invalid for this type of texture

setWrap

public abstract void setWrap(Texture.WrapMode mode)
setWrap sets the wrap mode of this texture for all axis.

パラメータ:
mode - the wrap mode for the given axis of the texture.
例外:
java.lang.IllegalArgumentException - if mode is null or invalid for this type of texture

getWrap

public abstract Texture.WrapMode getWrap(Texture.WrapAxis axis)
getWrap returns the wrap mode for a given coordinate axis on this texture.

パラメータ:
axis - the axis to return for
戻り値:
the wrap mode of the texture.
例外:
java.lang.IllegalArgumentException - if axis is null or invalid for this type of texture

getType

public abstract Texture.Type getType()

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getAnisotropicFilter

public int getAnisotropicFilter()
戻り値:
the anisotropic filtering level for this texture. Default value is 1 (no anisotrophy), 2 means x2, 4 is x4, etc.

setAnisotropicFilter

public void setAnisotropicFilter(int level)
パラメータ:
level - the anisotropic filtering level for this texture.

toString

public java.lang.String toString()
オーバーライド:
クラス java.lang.Object 内の toString

equals

public boolean equals(java.lang.Object obj)
オーバーライド:
クラス java.lang.Object 内の equals

hashCode

public int hashCode()
オーバーライド:
クラス java.lang.Object 内の hashCode

createSimpleClone

public Texture createSimpleClone(Texture rVal)
Retreive a basic clone of this Texture (ie, clone everything but the image data, which is shared)

戻り値:
Texture

createSimpleClone

public abstract Texture createSimpleClone()

write

public void write(JmeExporter e)
           throws java.io.IOException
定義:
インタフェース Savable 内の write
例外:
java.io.IOException

read

public void read(JmeImporter e)
          throws java.io.IOException
定義:
インタフェース Savable 内の read
例外:
java.io.IOException