Class gl_light

java.lang.Object
jgl.context.attrib.lighting.gl_light

public class gl_light extends Object
gl_light is the lighting light class of jGL 2.4.
Version:
0.3, 15 Mar 2001
Author:
Robin Bing-Yu Chen
  • Field Details

    • Ambient

      public float[] Ambient
      GL_AMBIENT: Ambient intensity of light i
    • Diffuse

      public float[] Diffuse
      GL_DIFFUSE: Diffuse intensity of light i
    • Specular

      public float[] Specular
      GL_SPECULAR: Specular intensity of light i
    • Position

      public float[] Position
      GL_POSITION: Position of light i
    • NormPosition

      public float[] NormPosition
    • ConstantAttenuation

      public float ConstantAttenuation
      GL_CONSTANT_ATTENUATION: Constant attenuation factor
    • LinearAttenuation

      public float LinearAttenuation
      GL_LINEAR_ATTENUATION: Linear attenuation factor
    • QuadraticAttenuation

      public float QuadraticAttenuation
      GL_QUADRATIC_ATTENUATION: Quadratic attenuation factor
    • SpotDirection

      public float[] SpotDirection
      GL_SPOT_DIRECTION: Spotlight direction of light i
    • SpotExponent

      public float SpotExponent
      GL_SPOT_EXPONENT: Spotlight exponent of light i
    • SpotCutoff

      public float SpotCutoff
      GL_SPOT_CUTOFF: Spotlight angle of light i
    • Enable

      public boolean Enable
      GL_LIGHTi: Ture if light i enabled, also in gl_enable
  • Constructor Details

    • gl_light

      public gl_light(gl_light cc)
    • gl_light

      public gl_light()
  • Method Details

    • set_light

      public void set_light(int pname, float[] params)
    • get_light

      public float[] get_light(int pname)