Package jgl.context.attrib.lighting
Class gl_light
java.lang.Object
jgl.context.attrib.lighting.gl_light
gl_light is the lighting light class of jGL 2.4.
- Version:
- 0.3, 15 Mar 2001
- Author:
- Robin Bing-Yu Chen
-
Field Summary
Modifier and TypeFieldDescriptionfloat[]
GL_AMBIENT: Ambient intensity of light ifloat
GL_CONSTANT_ATTENUATION: Constant attenuation factorfloat[]
GL_DIFFUSE: Diffuse intensity of light iboolean
GL_LIGHTi: Ture if light i enabled, also in gl_enablefloat
GL_LINEAR_ATTENUATION: Linear attenuation factorfloat[]
float[]
GL_POSITION: Position of light ifloat
GL_QUADRATIC_ATTENUATION: Quadratic attenuation factorfloat[]
GL_SPECULAR: Specular intensity of light ifloat
GL_SPOT_CUTOFF: Spotlight angle of light ifloat[]
GL_SPOT_DIRECTION: Spotlight direction of light ifloat
GL_SPOT_EXPONENT: Spotlight exponent of light i -
Constructor Summary
-
Method Summary
-
Field Details
-
Ambient
public float[] AmbientGL_AMBIENT: Ambient intensity of light i -
Diffuse
public float[] DiffuseGL_DIFFUSE: Diffuse intensity of light i -
Specular
public float[] SpecularGL_SPECULAR: Specular intensity of light i -
Position
public float[] PositionGL_POSITION: Position of light i -
NormPosition
public float[] NormPosition -
ConstantAttenuation
public float ConstantAttenuationGL_CONSTANT_ATTENUATION: Constant attenuation factor -
LinearAttenuation
public float LinearAttenuationGL_LINEAR_ATTENUATION: Linear attenuation factor -
QuadraticAttenuation
public float QuadraticAttenuationGL_QUADRATIC_ATTENUATION: Quadratic attenuation factor -
SpotDirection
public float[] SpotDirectionGL_SPOT_DIRECTION: Spotlight direction of light i -
SpotExponent
public float SpotExponentGL_SPOT_EXPONENT: Spotlight exponent of light i -
SpotCutoff
public float SpotCutoffGL_SPOT_CUTOFF: Spotlight angle of light i -
Enable
public boolean EnableGL_LIGHTi: Ture if light i enabled, also in gl_enable
-
-
Constructor Details
-
gl_light
-
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)
-