|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.ohiou.cs456_badabing.sceneapi.basic.Material
public class Material
Container class for material properties.
Description: container class for material properties.
Copyright: Copyright (c) 2007, Lev A Neiman
Company: Ohio University EECS
| Field Summary | |
|---|---|
float[] |
ambient
ambience |
float[] |
color
RGBA color |
float[] |
diffuse
diffuse |
java.lang.String |
name
unique name for this material. |
float[] |
shininess
shininess |
float[] |
specular
specular |
Texture |
texture
JOGL Texture object. |
| Constructor Summary | |
|---|---|
Material()
default constructor |
|
Material(java.lang.String name)
|
|
| Method Summary | |
|---|---|
void |
apply(GLAutoDrawable drawable)
this method applies this material to the GL instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public Texture texture
public java.lang.String name
public float[] color
public float[] ambient
public float[] diffuse
public float[] specular
public float[] shininess
| Constructor Detail |
|---|
public Material(java.lang.String name)
name - Stringpublic Material()
| Method Detail |
|---|
public void apply(GLAutoDrawable drawable)
drawable - GLAutoDrawable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||