public class

Material

extends Object
java.lang.Object
   ↳ casmi.graphics.material.Material

Class Overview

Material class. Wrap JOGL and make it easy to use.

Summary

Public Constructors
Material()
Creates Material object.
Public Methods
void setAmbient(float[] ambient)
Sets the ambient reflectance for shapes drawn to the screen.
void setAmbient(float gray)
Sets the ambient reflectance for shapes drawn to the screen.
void setAmbient(float red, float green, float blue)
Sets the ambient reflectance for shapes drawn to the screen.
void setDiffuse(float[] diffuse)
Sets the diffuse color of the materials used for shapes drawn to the screen.
void setDiffuse(float red, float green, float blue)
Sets the diffuse color of the materials used for shapes drawn to the screen.
void setDiffuse(float gray)
Sets the diffuse color of the materials used for shapes drawn to the screen.
void setEmissive(float red, float green, float blue)
Sets the emissive color of the material used for drawing shapes drawn to the screen.
void setEmissive(float[] emissive)
Sets the emissive color of the material used for drawing shapes drawn to the screen.
void setEmissive(float gray)
Sets the emissive color of the material used for drawing shapes drawn to the screen.
void setShininess(float shininess)
Sets the amount of gloss in the surface of shapes.
void setSpecular(float[] specular)
Sets the specular color of the materials used for shapes drawn to the screen.
void setSpecular(float red, float green, float blue)
Sets the specular color of the materials used for shapes drawn to the screen.
void setSpecular(float gray)
Sets the specular color of the materials used for shapes drawn to the screen.
void setup(GL2 gl)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Material ()

Creates Material object.

Public Methods

public void setAmbient (float[] ambient)

Sets the ambient reflectance for shapes drawn to the screen.

Parameters
ambient The ambient reflectance of this Material.

public void setAmbient (float gray)

Sets the ambient reflectance for shapes drawn to the screen.

Parameters
gray The gray-scale value of the ambient reflectance.

public void setAmbient (float red, float green, float blue)

Sets the ambient reflectance for shapes drawn to the screen.

Parameters
red The red color of the ambient reflectance.
green The green color of the ambient reflectance.
blue The blue color of the ambient reflectance.

public void setDiffuse (float[] diffuse)

Sets the diffuse color of the materials used for shapes drawn to the screen.

Parameters
diffuse The diffuse color of the materials

public void setDiffuse (float red, float green, float blue)

Sets the diffuse color of the materials used for shapes drawn to the screen.

Parameters
red The red color of the diffuse.
green The green color of the diffuse.
blue The blue color of the diffuse.

public void setDiffuse (float gray)

Sets the diffuse color of the materials used for shapes drawn to the screen.

Parameters
gray The gray-scale value scale of the diffuse.

public void setEmissive (float red, float green, float blue)

Sets the emissive color of the material used for drawing shapes drawn to the screen.

Parameters
red The red color of the emissive.
green The green color of the emissive.
blue The blue color of the emissive.

public void setEmissive (float[] emissive)

Sets the emissive color of the material used for drawing shapes drawn to the screen.

Parameters
emissive The emissive color of the Material.

public void setEmissive (float gray)

Sets the emissive color of the material used for drawing shapes drawn to the screen.

Parameters
gray The gray-scale value of the emissive.

public void setShininess (float shininess)

Sets the amount of gloss in the surface of shapes.

Parameters
shininess The amount of gloss in the surface of shapes of this Material.

public void setSpecular (float[] specular)

Sets the specular color of the materials used for shapes drawn to the screen.

Parameters
specular The specular color of the Material.

public void setSpecular (float red, float green, float blue)

Sets the specular color of the materials used for shapes drawn to the screen.

Parameters
red The red color of the specular.
green The green color of the specular.
blue The blue color of the specular.

public void setSpecular (float gray)

Sets the specular color of the materials used for shapes drawn to the screen.

Parameters
gray The gray-scale value of the specular.

public void setup (GL2 gl)