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
Modifier and TypeFieldDescriptionboolean
GL_COLOR_MATERIAL: True if color tracking is enabledint
GL_COLOR_MATERIAL_FACE: Face(s) affected by color trackingint
GL_COLOR_MATERIAL_PARAMETER: Material properties tracking current colorboolean
GL_LIGHTING: True is lighting is enabled, also in gl_enablegl_light[]
For light ifloat[]
GL_LIGHT_MODEL_AMBIENT: Ambient scene colorboolean
GL_LIGHT_MODEL_LOCAL_VIEWER: Viewer is localboolean
GL_LIGHT_MODEL_TWO_SIDE: Use two-sided lightingFor material colorint
GL_SHADE_MODEL: glShadeModel() setting -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
color_vertex
(float[] vertex, float[] normal) float[]
get_light
(int light, int pname) float[]
get_material
(int face, int pname) void
set_color
(float r, float g, float b, float a) void
set_color_material
(int face, int mode) void
set_light
(int light, int pname, float[] params) void
set_light_model
(int pname, float[] params) void
set_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)
-