Class OgreMeshKey

java.lang.Object
com.jme3.asset.AssetKey<com.jme3.scene.Spatial>
com.jme3.asset.ModelKey
com.jme3.scene.plugins.ogre.OgreMeshKey
All Implemented Interfaces:
com.jme3.export.Savable, Cloneable

public class OgreMeshKey extends com.jme3.asset.ModelKey
OgreMeshKey is used to load Ogre3D mesh.xml models with a specific material file or list. This allows customizing from where the materials are retrieved, instead of loading the material file as the same name as the model (the default).
Author:
Kirill Vainer
  • Constructor Details

    • OgreMeshKey

      public OgreMeshKey()
    • OgreMeshKey

      public OgreMeshKey(String name)
    • OgreMeshKey

      public OgreMeshKey(String name, com.jme3.material.MaterialList materialList)
    • OgreMeshKey

      public OgreMeshKey(String name, String materialName)
  • Method Details

    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class com.jme3.asset.AssetKey<com.jme3.scene.Spatial>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class com.jme3.asset.AssetKey<com.jme3.scene.Spatial>
    • getMaterialList

      public com.jme3.material.MaterialList getMaterialList()
    • setMaterialList

      public void setMaterialList(com.jme3.material.MaterialList materialList)
    • getMaterialName

      public String getMaterialName()
    • setMaterialName

      public void setMaterialName(String name)