|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectcom.jme3.texture.Texture
public abstract class Texture
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 |
コンストラクタの詳細 |
---|
public Texture()
Texture
object with default
attributes.
メソッドの詳細 |
---|
public Texture clone()
java.lang.Object
内の clone
public Texture.MinFilter getMinFilter()
public void setMinFilter(Texture.MinFilter minificationFilter)
minificationFilter
- the new MinificationFilterMode for this texture.
java.lang.IllegalArgumentException
- if minificationFilter is nullpublic Texture.MagFilter getMagFilter()
public void setMagFilter(Texture.MagFilter magnificationFilter)
magnificationFilter
- the new MagnificationFilter for this texture.
java.lang.IllegalArgumentException
- if magnificationFilter is nullpublic Texture.ShadowCompareMode getShadowCompareMode()
Texture.ShadowCompareMode
public void setShadowCompareMode(Texture.ShadowCompareMode compareMode)
compareMode
- the new ShadowCompareMode for this texture.
java.lang.IllegalArgumentException
- if compareMode is nullTexture.ShadowCompareMode
public void setImage(Image image)
setImage
sets the image object that defines the texture.
image
- the image that defines the texture.public void setKey(AssetKey key)
Asset
内の setKey
key
- The texture key that was used to load this texturepublic AssetKey getKey()
Asset
内の getKey
public Image getImage()
getImage
returns the image data that makes up this
texture. If no image data has been set, this will return null.
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 texturepublic 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 texturepublic 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
java.lang.IllegalArgumentException
- if axis is null or invalid for this type of texturepublic abstract Texture.Type getType()
public java.lang.String getName()
public void setName(java.lang.String name)
public int getAnisotropicFilter()
public void setAnisotropicFilter(int level)
level
- the anisotropic filtering level for this texture.public java.lang.String toString()
java.lang.Object
内の toString
public boolean equals(java.lang.Object obj)
java.lang.Object
内の equals
public int hashCode()
java.lang.Object
内の hashCode
public Texture createSimpleClone(Texture rVal)
public abstract Texture createSimpleClone()
public void write(JmeExporter e) throws java.io.IOException
Savable
内の write
java.io.IOException
public void read(JmeImporter e) throws java.io.IOException
Savable
内の read
java.io.IOException
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |