public class ShapeMaterial
extends java.lang.Object
Converts and stores an IShape's key/value properties list in format of JME3 data
Constructor and Description |
---|
ShapeMaterial(com.jme3.asset.AssetManager assetManager,
IShape shape)
Initializes the instance with a given IShape
|
Modifier and Type | Method and Description |
---|---|
com.jme3.material.Material |
getMaterial()
Returns the material associated with the IShape properties
|
void |
setHighlightedMaterial(com.jme3.material.Material mat)
This operation sets the material that should be used for the shape when
it is selected.
|
void |
setMaterial(com.jme3.material.Material mat)
This operation sets the material that should be used for this shape.
|
public ShapeMaterial(com.jme3.asset.AssetManager assetManager, IShape shape)
Initializes the instance with a given IShape
assetManager
- The AssetManager to load the Material definition
shape
- The shape associated with this ShapeRenderProperties instance
public com.jme3.material.Material getMaterial()
Returns the material associated with the IShape properties
The material to render the shape
public void setMaterial(com.jme3.material.Material mat)
mat
- The JME3 material.public void setHighlightedMaterial(com.jme3.material.Material mat)
mat
- The JME3 material used when this shape is selected.