public class MaterialExtensionSet
extends java.lang.Object
MaterialExtensionSet
is simply a container for several
MaterialExtension
s so that it can be set globally for all
OgreMaterialKey
s used.Constructor and Description |
---|
MaterialExtensionSet() |
Modifier and Type | Method and Description |
---|---|
void |
addMaterialExtension(MaterialExtension extension)
Adds a new material extension to the set of extensions.
|
MaterialExtension |
getMaterialExtension(java.lang.String baseMatName)
Returns the
MaterialExtension for a given Ogre3D base material
name. |
java.util.List<java.lang.String> |
getNameMappings(java.lang.String name) |
void |
setNameMapping(java.lang.String name,
java.lang.String alias)
Adds an alternative name for a material
|
public void addMaterialExtension(MaterialExtension extension)
extension
- The MaterialExtension
to add.public MaterialExtension getMaterialExtension(java.lang.String baseMatName)
MaterialExtension
for a given Ogre3D base material
name.baseMatName
- The ogre3D base material name.MaterialExtension
that is set, or null if not set.public void setNameMapping(java.lang.String name, java.lang.String alias)
name
- The material name to be found in a .mesh.xml filealias
- The material name to be found in a .material filepublic java.util.List<java.lang.String> getNameMappings(java.lang.String name)