Package jgl.context.attrib.lighting
Class gl_material
- java.lang.Object
-
- jgl.context.attrib.lighting.gl_material
-
public class gl_material extends Object
gl_material is the lighting masterial color class of jGL 2.4.- Version:
- 0.3, 15 Mar 2001
- Author:
- Robin Bing-Yu Chen
-
-
Field Summary
Fields Modifier and Type Field Description float[]
Ambient
GL_AMBIENT: Ambient material colorfloat
ColorIndexAmbient
GL_COLOR_INDEXES: Ca, Cd, Cs for color-index lighting, also in gl_enablefloat
ColorIndexDiffuse
float
ColorIndexSpecular
float[]
Diffuse
GL_DEFFUSE: Diffuse material colorfloat[]
Emission
GL_EMISSION: Emissive material colorfloat
Shininess
GL_SHININESS: Specular exponent of materialfloat[]
Specular
GL_SPECULAR: Specular material color
-
Constructor Summary
Constructors Constructor Description gl_material()
gl_material(gl_material cc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float[]
get_material(int pname)
void
set_material(int pname, float[] params)
-
-
-
Field Detail
-
Ambient
public float[] Ambient
GL_AMBIENT: Ambient material color
-
Diffuse
public float[] Diffuse
GL_DEFFUSE: Diffuse material color
-
Specular
public float[] Specular
GL_SPECULAR: Specular material color
-
Emission
public float[] Emission
GL_EMISSION: Emissive material color
-
Shininess
public float Shininess
GL_SHININESS: Specular exponent of material
-
ColorIndexAmbient
public float ColorIndexAmbient
GL_COLOR_INDEXES: Ca, Cd, Cs for color-index lighting, also in gl_enable
-
ColorIndexDiffuse
public float ColorIndexDiffuse
-
ColorIndexSpecular
public float ColorIndexSpecular
-
-
Constructor Detail
-
gl_material
public gl_material(gl_material cc)
-
gl_material
public gl_material()
-
-