edu.ohiou.cs456_badabing.sceneapi.basic
Class Material

java.lang.Object
  extended by edu.ohiou.cs456_badabing.sceneapi.basic.Material

public class Material
extends java.lang.Object

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

texture

public Texture texture
JOGL Texture object. if it is equal to null then there is no texture.


name

public java.lang.String name
unique name for this material.


color

public float[] color
RGBA color


ambient

public float[] ambient
ambience


diffuse

public float[] diffuse
diffuse


specular

public float[] specular
specular


shininess

public float[] shininess
shininess

Constructor Detail

Material

public Material(java.lang.String name)
Parameters:
name - String

Material

public Material()
default constructor

Method Detail

apply

public void apply(GLAutoDrawable drawable)
this method applies this material to the GL instance.

Parameters:
drawable - GLAutoDrawable