Package jgl.context.attrib.lighting
Class gl_material
java.lang.Object
jgl.context.attrib.lighting.gl_material
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
Modifier and TypeFieldDescriptionfloat[]
GL_AMBIENT: Ambient material colorfloat
GL_COLOR_INDEXES: Ca, Cd, Cs for color-index lighting, also in gl_enablefloat
float
float[]
GL_DEFFUSE: Diffuse material colorfloat[]
GL_EMISSION: Emissive material colorfloat
GL_SHININESS: Specular exponent of materialfloat[]
GL_SPECULAR: Specular material color -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat[]
get_material
(int pname) void
set_material
(int pname, float[] params)
-
Field Details
-
Ambient
public float[] AmbientGL_AMBIENT: Ambient material color -
Diffuse
public float[] DiffuseGL_DEFFUSE: Diffuse material color -
Specular
public float[] SpecularGL_SPECULAR: Specular material color -
Emission
public float[] EmissionGL_EMISSION: Emissive material color -
Shininess
public float ShininessGL_SHININESS: Specular exponent of material -
ColorIndexAmbient
public float ColorIndexAmbientGL_COLOR_INDEXES: Ca, Cd, Cs for color-index lighting, also in gl_enable -
ColorIndexDiffuse
public float ColorIndexDiffuse -
ColorIndexSpecular
public float ColorIndexSpecular
-
-
Constructor Details
-
gl_material
-
gl_material
public gl_material()
-
-
Method Details
-
set_material
public void set_material(int pname, float[] params) -
get_material
public float[] get_material(int pname)
-