Package jgl.context.render
Class gl_depth
- java.lang.Object
-
- jgl.context.render.gl_render
-
- jgl.context.render.gl_depth
-
-
Field Summary
Fields Modifier and Type Field Description protected floatdzdxprotected floatdzdyprotected floatLeftPointZprotected float[]LineZprotected floatz
-
Constructor Summary
Constructors Constructor Description gl_depth(gl_context cc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddec_x()protected voiddraw_horizontal_line(int y)protected voiddraw_horizontal_line(int x1, int x2, int y, float z1)Draw a flat horizontal line in the Color Buffer with depth value, assume that x1 is in the left side of x2protected voidinc_x()protected voidinc_y()protected voidinc_y_more()protected voidinc_y_once()protected voidinit(gl_vertex v1, gl_vertex v2)protected voidinit(gl_vertex v1, gl_vertex v2, gl_vertex v3)protected voidinit_dx(int dx)protected voidinit_dx_dy(int area, int left, int right, int top)protected voidinit_dy(int dy)protected voidinit_other(boolean delta, int dy)protected voidinit_z(gl_vertex v1, gl_vertex v2)protected voidinit_z(gl_vertex v1, gl_vertex v2, gl_vertex v3)protected voidinit_z_dx(int dx)protected voidinit_z_dx_dy(int area, int left, int right, int top)protected voidinit_z_dy(int dy)protected voidinit_z_other(boolean delta, int dy)protected voidput_pixel()Will color the given pixel WITHOUT verifying depth buffer (seeput_pixel()protected voidput_pixel_by_index()Will color the given pixel WITHOUT verifying depth buffer (seeput_pixel_by_index()protected voidset_first_point()protected voidset_first_z()protected voidset_left(int pos)protected voidset_left_z(int pos)protected voidz_dec_x()protected voidz_inc_x()protected voidz_inc_y()protected voidz_inc_y_more()protected voidz_inc_y_once()-
Methods inherited from class jgl.context.render.gl_render
dec_x_inc_y, draw_horizontal_line, draw_horizontal_line, draw_line, draw_line, draw_point, draw_point, draw_polygon, draw_polygon, draw_triangle, draw_triangle, inc_left, inc_left_xy, inc_right, inc_right_xy, inc_x_inc_y, init_dx_dy, init_left, init_left_xy, init_right, init_right_xy, init_xy, init_xy, set_first_xy, set_left_xy, set_pixel, set_right, set_right_xy, x_dec_x, x_inc_x, y_inc_y
-
-
-
-
Constructor Detail
-
gl_depth
public gl_depth(gl_context cc)
-
-
Method Detail
-
set_first_z
protected void set_first_z()
-
set_first_point
protected void set_first_point()
- Overrides:
set_first_pointin classgl_render
-
init_z_dx
protected void init_z_dx(int dx)
-
init_z_dy
protected void init_z_dy(int dy)
-
z_inc_x
protected void z_inc_x()
-
z_dec_x
protected void z_dec_x()
-
z_inc_y
protected void z_inc_y()
-
put_pixel
protected void put_pixel()
Description copied from class:gl_renderWill color the given pixel WITHOUT verifying depth buffer (seeput_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 (seeput_pixel_by_index()- Overrides:
put_pixel_by_indexin classgl_render
-
draw_horizontal_line
protected void draw_horizontal_line(int x1, int x2, int y, float z1)Draw a flat horizontal line in the Color Buffer with depth value, assume that x1 is in the left side of x2
-
set_left_z
protected void set_left_z(int pos)
-
init_z_dx_dy
protected void init_z_dx_dy(int area, int left, int right, int top)
-
init_dx_dy
protected void init_dx_dy(int area, int left, int right, int top)- Overrides:
init_dx_dyin classgl_render
-
init_z_other
protected void init_z_other(boolean delta, int dy)
-
init_other
protected void init_other(boolean delta, int dy)- Overrides:
init_otherin classgl_render
-
z_inc_y_once
protected void z_inc_y_once()
-
inc_y_once
protected void inc_y_once()
- Overrides:
inc_y_oncein classgl_render
-
z_inc_y_more
protected void z_inc_y_more()
-
inc_y_more
protected void inc_y_more()
- Overrides:
inc_y_morein classgl_render
-
draw_horizontal_line
protected void draw_horizontal_line(int y)
- Overrides:
draw_horizontal_linein classgl_render
-
-