public class TextureKey extends AssetKey<Texture>
Image
object, which is then converted to a Texture
in the
TextureProcessor.postProcess(com.jme3.asset.AssetKey, java.lang.Object)
method. Since textures are cloneable smart assets, the texture stored
in the cache will be collected when all clones of the texture become
unreachable.Constructor and Description |
---|
TextureKey() |
TextureKey(java.lang.String name) |
TextureKey(java.lang.String name,
boolean flipY) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
getAnisotropy() |
java.lang.Class<? extends AssetCache> |
getCacheType() |
java.lang.Class<? extends AssetProcessor> |
getProcessorType() |
Texture.Type |
getTextureTypeHint()
The type of texture expected to be returned.
|
int |
hashCode() |
boolean |
isFlipY() |
boolean |
isGenerateMips() |
void |
read(JmeImporter im) |
void |
setAnisotropy(int anisotropy) |
void |
setFlipY(boolean flipY) |
void |
setGenerateMips(boolean generateMips) |
void |
setTextureTypeHint(Texture.Type textureTypeHint)
Hints the loader as to which type of texture is expected.
|
java.lang.String |
toString() |
void |
write(JmeExporter ex) |
clone, getExtension, getExtension, getFolder, getFolder, getName, reducePath
public TextureKey(java.lang.String name, boolean flipY)
public TextureKey(java.lang.String name)
public TextureKey()
public java.lang.Class<? extends AssetCache> getCacheType()
getCacheType
in class AssetKey<Texture>
SimpleAssetCache
is returned.public java.lang.Class<? extends AssetProcessor> getProcessorType()
getProcessorType
in class AssetKey<Texture>
public boolean isFlipY()
public void setFlipY(boolean flipY)
public int getAnisotropy()
public void setAnisotropy(int anisotropy)
public boolean isGenerateMips()
public void setGenerateMips(boolean generateMips)
public Texture.Type getTextureTypeHint()
public void setTextureTypeHint(Texture.Type textureTypeHint)
textureTypeHint
- The type of texture expected to be loaded.public void write(JmeExporter ex) throws java.io.IOException