org.jdesktop.wonderland.common.cell.config.jme
Class MaterialJME

java.lang.Object
  extended by org.jdesktop.wonderland.common.cell.config.jme.MaterialJME
All Implemented Interfaces:
java.io.Serializable

public class MaterialJME
extends java.lang.Object
implements java.io.Serializable

Wire protocol that encapsulates JME materials

Author:
paulby
See Also:
Serialized Form

Constructor Summary
MaterialJME()
           
MaterialJME(com.jme.renderer.ColorRGBA diffuseColor, com.jme.renderer.ColorRGBA ambientColor, com.jme.renderer.ColorRGBA specularColor, com.jme.renderer.ColorRGBA emissiveColor, float shininess)
           
 
Method Summary
 com.jme.scene.state.MaterialState apply(com.jme.scene.state.MaterialState state)
          Apply the settings to the supplied state and return the updated object.
 com.jme.renderer.ColorRGBA getAmbientColor()
           
 com.jme.renderer.ColorRGBA getDiffuseColor()
           
 com.jme.renderer.ColorRGBA getEmissiveColor()
           
 float getShininess()
           
 com.jme.renderer.ColorRGBA getSpecularColor()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MaterialJME

public MaterialJME()

MaterialJME

public MaterialJME(com.jme.renderer.ColorRGBA diffuseColor,
                   com.jme.renderer.ColorRGBA ambientColor,
                   com.jme.renderer.ColorRGBA specularColor,
                   com.jme.renderer.ColorRGBA emissiveColor,
                   float shininess)
Method Detail

getDiffuseColor

public com.jme.renderer.ColorRGBA getDiffuseColor()

getAmbientColor

public com.jme.renderer.ColorRGBA getAmbientColor()

getSpecularColor

public com.jme.renderer.ColorRGBA getSpecularColor()

getEmissiveColor

public com.jme.renderer.ColorRGBA getEmissiveColor()
Returns:
the emissiveColor

getShininess

public float getShininess()

apply

public com.jme.scene.state.MaterialState apply(com.jme.scene.state.MaterialState state)
Apply the settings to the supplied state and return the updated object.

Parameters:
state -
Returns:


Open Wonderland - http://openwonderland.org