org.jmonkeyengine.scene.plugins.ogre.matext
Class MaterialExtension

java.lang.Object
  extended by org.jmonkeyengine.scene.plugins.ogre.matext.MaterialExtension

public class MaterialExtension
extends java.lang.Object

MaterialExtension defines a mapping from an Ogre3D "base" material to a jME3 material definition.


Constructor Summary
MaterialExtension(java.lang.String baseMatName, java.lang.String jmeMatDefName)
          Material extension defines a mapping from an Ogre3D "base" material to a jME3 material definition.
 
Method Summary
 java.lang.String getBaseMaterialName()
           
 java.lang.String getJmeMatDefName()
           
 java.lang.String getTextureMapping(java.lang.String ogreTexAlias)
          Retreives a mapping from an Ogre3D base material texture alias to a jME3 texture param
 void setTextureMapping(java.lang.String ogreTexAlias, java.lang.String jmeTexParam)
          Set mapping from an Ogre3D base material texture alias to a jME3 texture param
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MaterialExtension

public MaterialExtension(java.lang.String baseMatName,
                         java.lang.String jmeMatDefName)
Material extension defines a mapping from an Ogre3D "base" material to a jME3 material definition.

Parameters:
baseMatName - The base material name for Ogre3D
jmeMatDefName - The material definition name for jME3
Method Detail

getBaseMaterialName

public java.lang.String getBaseMaterialName()

getJmeMatDefName

public java.lang.String getJmeMatDefName()

setTextureMapping

public void setTextureMapping(java.lang.String ogreTexAlias,
                              java.lang.String jmeTexParam)
Set mapping from an Ogre3D base material texture alias to a jME3 texture param

Parameters:
ogreTexAlias - The texture alias in the Ogre3D base material
jmeTexParam - The texture param name in the jME3 material definition.

getTextureMapping

public java.lang.String getTextureMapping(java.lang.String ogreTexAlias)
Retreives a mapping from an Ogre3D base material texture alias to a jME3 texture param

Parameters:
ogreTexAlias - The texture alias in the Ogre3D base material
Returns:
The texture alias in the Ogre3D base material