Package jgl.context.render
Class gl_smooth
java.lang.Object
jgl.context.render.gl_render
jgl.context.render.gl_depth
jgl.context.render.gl_smooth
- Direct Known Subclasses:
gl_lit_tex,gl_smooth_z
gl_smooth is the rendering class with smooth shading of jGL 2.4.
- Version:
- 0.5, 23 Nov 2006
- Author:
- Robin Bing-Yu Chen
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int[]protected int[]protected int[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddec_x()protected voidprotected voiddraw_horizontal_line(int y) protected voiddraw_horizontal_line(int x1, int[] rgb1, int x2, int[] rgb2, int y) protected voidinc_left()protected voidprotected voidinc_rgb()protected voidprotected voidprotected voidinc_x()protected voidprotected voidinc_y()protected voidprotected voidprotected voidprotected voidprotected voidinit_color(gl_vertex v1, gl_vertex v2, gl_vertex v3) protected voidinit_drgb(int d) protected voidinit_dx_dy(int dx, int dy) protected voidinit_dx_dy(int area, int left, int right, int top) protected voidinit_left(int down, int top) protected voidinit_left_rgb(int down, int top) protected voidinit_other(boolean delta, int dy) protected voidprotected voidinit_right(int down, int top) protected voidinit_right_rgb(int down, int top) protected voidWill color the given pixel WITHOUT verifying depth buffer (seegl_depth.put_pixel()protected voidWill color the given pixel WITHOUT verifying depth buffer (seegl_depth.put_pixel_by_index()protected voidprotected voidprotected voidset_left(int pos) protected voidset_left_color(int pos) protected voidset_right(int pos) protected voidset_right_color(int pos) Methods inherited from class jgl.context.render.gl_depth
draw_horizontal_line, init_dx, init_dy, init_z, init_z, init_z_dx, init_z_dx_dy, init_z_dy, init_z_other, set_first_z, set_left_z, z_dec_x, z_inc_x, z_inc_y, z_inc_y_more, z_inc_y_onceMethods inherited from class jgl.context.render.gl_render
draw_horizontal_line, draw_horizontal_line, draw_line, draw_line, draw_point, draw_point, draw_polygon, draw_polygon, draw_triangle, draw_triangle, inc_left_xy, inc_right_xy, init_left_xy, init_right_xy, init_xy, init_xy, set_first_xy, set_left_xy, set_pixel, set_right_xy, x_dec_x, x_inc_x, y_inc_y
-
Field Details
-
rgb
protected int[] rgb -
RightPointRGB
protected int[] RightPointRGB -
LeftPointRGB
protected int[] LeftPointRGB
-
-
Constructor Details
-
gl_smooth
-
-
Method Details
-
init_rgb
-
init
-
set_first_rgb
protected void set_first_rgb() -
set_first_point
protected void set_first_point()- Overrides:
set_first_pointin classgl_depth
-
init_drgb
protected void init_drgb(int d) -
init_dx_dy
protected void init_dx_dy(int dx, int dy) - Overrides:
init_dx_dyin classgl_render
-
inc_rgb
protected void inc_rgb() -
inc_x
protected void inc_x() -
dec_x
protected void dec_x() -
inc_y
protected void inc_y() -
inc_x_inc_y
protected void inc_x_inc_y()- Overrides:
inc_x_inc_yin classgl_render
-
dec_x_inc_y
protected void dec_x_inc_y()- Overrides:
dec_x_inc_yin classgl_render
-
put_pixel
protected void put_pixel()Description copied from class:gl_renderWill color the given pixel WITHOUT verifying depth buffer (seegl_depth.put_pixel() -
put_pixel_by_index
protected void put_pixel_by_index()Description copied from class:gl_renderWill color the given pixel WITHOUT verifying depth buffer (seegl_depth.put_pixel_by_index()- Overrides:
put_pixel_by_indexin classgl_depth
-
draw_horizontal_line
protected void draw_horizontal_line(int x1, int[] rgb1, int x2, int[] rgb2, int y) -
init_color
-
init
-
set_left_color
protected void set_left_color(int pos) -
set_right_color
protected void set_right_color(int pos) -
set_left
protected void set_left(int pos) -
set_right
protected void set_right(int pos) -
init_dx_dy
protected void init_dx_dy(int area, int left, int right, int top) - Overrides:
init_dx_dyin classgl_depth
-
init_other
protected void init_other(boolean delta, int dy) - Overrides:
init_otherin classgl_depth
-
init_left_rgb
protected void init_left_rgb(int down, int top) -
init_right_rgb
protected void init_right_rgb(int down, int top) -
init_left
protected void init_left(int down, int top) -
init_right
protected void init_right(int down, int top) - Overrides:
init_rightin classgl_render
-
inc_y_once
protected void inc_y_once()- Overrides:
inc_y_oncein classgl_depth
-
inc_y_more
protected void inc_y_more()- Overrides:
inc_y_morein classgl_depth
-
inc_left_rgb
protected void inc_left_rgb() -
inc_right_rgb
protected void inc_right_rgb() -
inc_left
protected void inc_left() -
inc_right
protected void inc_right() -
draw_horizontal_line
protected void draw_horizontal_line(int y) - Overrides:
draw_horizontal_linein classgl_depth
-