Class 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 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()
    • Method Detail

      • set_material

        public void set_material​(int pname,
                                 float[] params)
      • get_material

        public float[] get_material​(int pname)