barsuift.simLife.j3d
Class AppearanceFactory
java.lang.Object
barsuift.simLife.j3d.AppearanceFactory
public final class AppearanceFactory
- extends java.lang.Object
|
Method Summary |
static void |
setColorWithColoringAttributes(javax.media.j3d.Appearance appearance,
javax.vecmath.Color3f color)
Set the given color to the given appearance with coloring attributes |
static void |
setColorWithMaterial(javax.media.j3d.Appearance appearance,
javax.vecmath.Color3f ambientColor,
javax.vecmath.Color3f diffuseColor,
javax.vecmath.Color3f specularColor)
Set the given colors to the given appearance using a material instance |
static void |
setCullFace(javax.media.j3d.Appearance appearance,
int cullFace)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
setColorWithColoringAttributes
public static void setColorWithColoringAttributes(javax.media.j3d.Appearance appearance,
javax.vecmath.Color3f color)
- Set the given color to the given appearance with coloring attributes
- Parameters:
appearance - the appearancecolor - the color
setColorWithMaterial
public static void setColorWithMaterial(javax.media.j3d.Appearance appearance,
javax.vecmath.Color3f ambientColor,
javax.vecmath.Color3f diffuseColor,
javax.vecmath.Color3f specularColor)
- Set the given colors to the given appearance using a material instance
- Parameters:
appearance - the appearanceambientColor - the expected ambient colordiffuseColor - the expected diffuse colorspecularColor - the expected specular color
setCullFace
public static void setCullFace(javax.media.j3d.Appearance appearance,
int cullFace)
Copyright © 2010. All Rights Reserved.