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
public class gle_phong_geo extends gl_geometry
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
Fields Modifier and Type Field Description protected float[][]
Normal
Data Membersprotected float[][]
TexCoord
-
Fields inherited from class jgl.context.geometry.gl_geometry
CC, countBegin, CR, LineReset, VertexSize
-
-
Constructor Summary
Constructors Constructor Description gle_phong_geo(gle_context cc, gle_pointer cr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
copy_vertex(int s, int d)
protected void
draw_point(float[] p, int i)
protected void
extend_array()
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
-
-
-
-
Constructor Detail
-
gle_phong_geo
public gle_phong_geo(gle_context cc, gle_pointer cr)
-
-
Method Detail
-
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
protected gl_vertex[] pack_line(int i, int j)
- Overrides:
pack_line
in classgl_geometry
-
pack_polygon
protected gl_polygon pack_polygon(int size)
- 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
-
-