Package com.jme3.asset
Class ShaderNodeDefinitionKey
Used for loading
shader nodes definition
Determines whether the definition will be loaded with or without its documentation-
Field Summary
-
Constructor Summary
ConstructorDescriptioncreates a ShaderNodeDefinitionKeycreates a ShaderNodeDefinitionKey -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends AssetCache>
boolean
void
setLoadDocumentation
(boolean loadDocumentation) sets to true to load the documentation along with the ShaderNodeDefinitionMethods inherited from class com.jme3.asset.AssetKey
clone, equals, getExtension, getExtension, getFolder, getFolder, getName, getProcessorType, hashCode, read, reducePath, toString, write
-
Constructor Details
-
ShaderNodeDefinitionKey
creates a ShaderNodeDefinitionKey- Parameters:
name
- the name of the asset to load
-
ShaderNodeDefinitionKey
public ShaderNodeDefinitionKey()creates a ShaderNodeDefinitionKey
-
-
Method Details
-
getCacheType
- Overrides:
getCacheType
in classAssetKey<List<ShaderNodeDefinition>>
- Returns:
- The preferred cache class for this asset type. Specify "null"
if caching is to be disabled. By default, the
SimpleAssetCache
is returned.
-
isLoadDocumentation
public boolean isLoadDocumentation()- Returns:
- true if the asset loaded with this key will contain its documentation
-
setLoadDocumentation
public void setLoadDocumentation(boolean loadDocumentation) sets to true to load the documentation along with the ShaderNodeDefinition- Parameters:
loadDocumentation
- true to load the documentation along with the ShaderNodeDefinition
-