Package jgl.context.attrib
Class gl_lighting
java.lang.Object
jgl.context.attrib.gl_lighting
gl_lighting is the lighting class of jGL 2.4.
- Version:
- 0.3, 15 Mar 2001
- Author:
- Robin Bing-Yu Chen
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanGL_COLOR_MATERIAL: True if color tracking is enabledintGL_COLOR_MATERIAL_FACE: Face(s) affected by color trackingintGL_COLOR_MATERIAL_PARAMETER: Material properties tracking current colorbooleanGL_LIGHTING: True is lighting is enabled, also in gl_enablegl_light[]For light ifloat[]GL_LIGHT_MODEL_AMBIENT: Ambient scene colorbooleanGL_LIGHT_MODEL_LOCAL_VIEWER: Viewer is localbooleanGL_LIGHT_MODEL_TWO_SIDE: Use two-sided lightingFor material colorintGL_SHADE_MODEL: glShadeModel() setting -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcolor_vertex(float[] vertex, float[] normal) float[]get_light(int light, int pname) float[]get_material(int face, int pname) voidset_color(float r, float g, float b, float a) voidset_color_material(int face, int mode) voidset_light(int light, int pname, float[] params) voidset_light_model(int pname, float[] params) voidset_material(int face, int pname, float[] params)
-
Field Details
-
ShadeModel
public int ShadeModelGL_SHADE_MODEL: glShadeModel() setting -
Enable
public boolean EnableGL_LIGHTING: True is lighting is enabled, also in gl_enable -
ColorMaterial
public boolean ColorMaterialGL_COLOR_MATERIAL: True if color tracking is enabled -
ColorMaterialParameter
public int ColorMaterialParameterGL_COLOR_MATERIAL_PARAMETER: Material properties tracking current color -
ColorMaterialFace
public int ColorMaterialFaceGL_COLOR_MATERIAL_FACE: Face(s) affected by color tracking -
LightModelAmbient
public float[] LightModelAmbientGL_LIGHT_MODEL_AMBIENT: Ambient scene color -
LightModelLocalViewer
public boolean LightModelLocalViewerGL_LIGHT_MODEL_LOCAL_VIEWER: Viewer is local -
LightModelTwoSide
public boolean LightModelTwoSideGL_LIGHT_MODEL_TWO_SIDE: Use two-sided lighting -
Material
For material color -
Light
For light i
-
-
Constructor Details
-
gl_lighting
-
gl_lighting
public gl_lighting()
-
-
Method Details
-
set_material
public void set_material(int face, int pname, float[] params) -
get_material
public float[] get_material(int face, int pname) -
set_color_material
public void set_color_material(int face, int mode) -
set_color
public void set_color(float r, float g, float b, float a) -
set_light_model
public void set_light_model(int pname, float[] params) -
set_light
public void set_light(int light, int pname, float[] params) -
get_light
public float[] get_light(int light, int pname) -
color_vertex
public int color_vertex(float[] vertex, float[] normal)
-