com.jme3.asset
Class GeneratedTextureKey
java.lang.Object
com.jme3.asset.AssetKey<Texture>
com.jme3.asset.TextureKey
com.jme3.asset.GeneratedTextureKey
- All Implemented Interfaces:
- Savable, java.lang.Cloneable
public class GeneratedTextureKey
- extends TextureKey
This key is mostly used to distinguish between textures that are loaded from
the given assets and those being generated automatically. Every generated
texture will have this kind of key attached.
Methods inherited from class com.jme3.asset.TextureKey |
equals, getAnisotropy, getCacheType, getProcessorType, getTextureTypeHint, hashCode, isAsCube, isAsTexture3D, isFlipY, isGenerateMips, read, setAnisotropy, setAsCube, setAsTexture3D, setGenerateMips, setTextureTypeHint, write |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
GeneratedTextureKey
public GeneratedTextureKey(java.lang.String name)
- Constructor. Stores the name. Extension and folder name are empty
strings.
- Parameters:
name
- the name of the texture
getExtension
public java.lang.String getExtension()
- Overrides:
getExtension
in class AssetKey<Texture>
- Returns:
- The extension of the
AssetKey
's name. For example,
the name "Interface/Logo/Monkey.png" has an extension of "png".
getFolder
public java.lang.String getFolder()
- Overrides:
getFolder
in class AssetKey<Texture>
- Returns:
- The folder in which the asset is located in.
E.g. if the
name
is "Models/MyModel/MyModel.j3o"
then "Models/MyModel/" is returned.
toString
public java.lang.String toString()
- Overrides:
toString
in class TextureKey