Package jgl.gle.geometry
Class gle_phong_geo
java.lang.Object
jgl.context.geometry.gl_geometry
jgl.gle.geometry.gle_phong_geo
- Direct Known Subclasses:
gle_phong_z_geo
gle_phong_geo is the geometry class for phong shading of jGL 2.5.
- Version:
- 0.1, 30 Dec. 2002
- Author:
- Robin Bing-Yu Chen
-
Field Summary
Modifier and TypeFieldDescriptionprotected float[][]
Data Membersprotected float[][]
Fields inherited from class jgl.context.geometry.gl_geometry
CC, countBegin, CR, LineReset, VertexSize
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
copy_vertex
(int s, int d) protected void
draw_point
(float[] p, int i) protected void
protected int
get_color
(int i) void
gl_begin()
protected gl_vertex[]
pack_line
(int i, int j) protected gl_polygon
pack_polygon
(int size) protected void
set_vertex
(int i) Methods inherited from class jgl.context.geometry.gl_geometry
gl_end, gl_vertex, PerspectiveDivision, VertexTransformation
-
Field Details
-
Normal
protected float[][] NormalData Members -
TexCoord
protected float[][] TexCoord
-
-
Constructor Details
-
gle_phong_geo
-
-
Method Details
-
get_color
protected int get_color(int i) -
draw_point
protected void draw_point(float[] p, int i) - Overrides:
draw_point
in classgl_geometry
-
pack_line
- Overrides:
pack_line
in classgl_geometry
-
pack_polygon
- Overrides:
pack_polygon
in classgl_geometry
-
set_vertex
protected void set_vertex(int i) - Overrides:
set_vertex
in classgl_geometry
-
copy_vertex
protected void copy_vertex(int s, int d) - Overrides:
copy_vertex
in classgl_geometry
-
extend_array
protected void extend_array()- Overrides:
extend_array
in classgl_geometry
-
gl_begin
public void gl_begin()- Overrides:
gl_begin
in classgl_geometry
-