Package com.jme3.asset
Class TextureKey
- Direct Known Subclasses:
- ContentTextureKey
Used to load textures from image files such as JPG or PNG.
 Note that texture loaders actually load the asset as an 
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.- 
Field Summary
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanintClass<? extends AssetCache> Class<? extends AssetProcessor> The type of texture expected to be returned.inthashCode()booleanisFlipY()booleanvoidread(JmeImporter im) voidsetAnisotropy(int anisotropy) voidsetFlipY(boolean flipY) voidsetGenerateMips(boolean generateMips) voidsetTextureTypeHint(Texture.Type textureTypeHint) Hints the loader as to which type of texture is expected.toString()voidwrite(JmeExporter ex) Methods inherited from class com.jme3.asset.AssetKeyclone, getExtension, getExtension, getFolder, getFolder, getName, reducePath
- 
Constructor Details- 
TextureKey
- 
TextureKey
- 
TextureKeypublic TextureKey()
 
- 
- 
Method Details- 
toString
- 
getCacheType- Overrides:
- getCacheTypein class- AssetKey<Texture>
- Returns:
- The preferred cache class for this asset type. Specify "null"
 if caching is to be disabled. By default, the
 SimpleAssetCacheis returned.
 
- 
getProcessorType- Overrides:
- getProcessorTypein class- AssetKey<Texture>
- Returns:
- The preferred processor type for this asset type. Specify "null" if no processing is required.
 
- 
isFlipYpublic boolean isFlipY()
- 
setFlipYpublic void setFlipY(boolean flipY) 
- 
getAnisotropypublic int getAnisotropy()
- 
setAnisotropypublic void setAnisotropy(int anisotropy) 
- 
isGenerateMipspublic boolean isGenerateMips()
- 
setGenerateMipspublic void setGenerateMips(boolean generateMips) 
- 
getTextureTypeHintThe type of texture expected to be returned.- Returns:
- type of texture expected to be returned.
 
- 
setTextureTypeHintHints the loader as to which type of texture is expected.- Parameters:
- textureTypeHint- The type of texture expected to be loaded.
 
- 
equals
- 
hashCodepublic int hashCode()
- 
write
- 
read
 
-