Package jgl.context.render
Class gl_lit_tex
- java.lang.Object
-
- jgl.context.render.gl_render
-
- jgl.context.render.gl_depth
-
- jgl.context.render.gl_smooth
-
- jgl.context.render.gl_lit_tex
-
- Direct Known Subclasses:
gl_lit_tex_z
public class gl_lit_tex extends gl_smooth
gl_lit_tex is the rendering class for texturing with lighting of jGL 2.4.- Version:
- 0.2, 16 May 2003
- Author:
- Robin Bing-Yu Chen
-
-
Field Summary
Fields Modifier and Type Field Description protected floatdrdxprotected floatdrdyprotected floatdsdxprotected floatdsdyprotected floatdtdxprotected floatdtdyprotected floatdwdxprotected floatdwdyprotected floatLeftPointRprotected floatLeftPointSprotected floatLeftPointTprotected floatLeftPointWprotected float[][]LineSTprotected float[]LineWprotected floatrprotected floatsprotected floattprotected floatw-
Fields inherited from class jgl.context.render.gl_smooth
LeftPointRGB, rgb, RightPointRGB
-
-
Constructor Summary
Constructors Constructor Description gl_lit_tex(gl_context cc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddec_x()protected voiddec_x_inc_y()protected voiddraw_horizontal_line(int y)protected voiddraw_horizontal_line(int x1, int[] rgb1, int x2, int[] rgb2, int y, float w1, float s1, float t1, float r1)protected voidinc_x()protected voidinc_x_inc_y()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 dx, int dy)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_tex(gl_vertex v1, gl_vertex v2)protected voidinit_tex(gl_vertex v1, gl_vertex v2, gl_vertex v3)protected voidinit_tex_dx(int dx)protected voidinit_tex_dx_dy(int area, int left, int right, int top)protected voidinit_tex_dy(int dy)protected voidinit_tex_other(boolean delta, int dy)protected voidput_pixel()Will color the given pixel WITHOUT verifying depth buffer (seegl_depth.put_pixel()protected voidput_pixel_by_index()Will color the given pixel WITHOUT verifying depth buffer (seegl_depth.put_pixel_by_index()protected voidset_first_point()protected voidset_first_tex()protected voidset_left(int pos)protected voidset_left_tex(int pos)protected voidtex_dec_x()protected voidtex_inc_x()protected voidtex_inc_y()protected voidtex_inc_y_more()protected voidtex_inc_y_once()-
Methods inherited from class jgl.context.render.gl_smooth
draw_horizontal_line, inc_left, inc_left_rgb, inc_rgb, inc_right, inc_right_rgb, init_color, init_drgb, init_left, init_left_rgb, init_rgb, init_right, init_right_rgb, set_first_rgb, set_left_color, set_right, set_right_color
-
Methods inherited from class jgl.context.render.gl_depth
draw_horizontal_line, 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_once
-
Methods 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 Detail
-
LineW
protected float[] LineW
-
LineST
protected float[][] LineST
-
w
protected float w
-
dwdx
protected float dwdx
-
dwdy
protected float dwdy
-
s
protected float s
-
dsdx
protected float dsdx
-
dsdy
protected float dsdy
-
t
protected float t
-
dtdx
protected float dtdx
-
dtdy
protected float dtdy
-
r
protected float r
-
drdx
protected float drdx
-
drdy
protected float drdy
-
LeftPointW
protected float LeftPointW
-
LeftPointS
protected float LeftPointS
-
LeftPointT
protected float LeftPointT
-
LeftPointR
protected float LeftPointR
-
-
Constructor Detail
-
gl_lit_tex
public gl_lit_tex(gl_context cc)
-
-
Method Detail
-
set_first_tex
protected void set_first_tex()
-
set_first_point
protected void set_first_point()
- Overrides:
set_first_pointin classgl_smooth
-
init_tex_dx
protected void init_tex_dx(int dx)
-
init_tex_dy
protected void init_tex_dy(int dy)
-
init_dx_dy
protected void init_dx_dy(int dx, int dy)- Overrides:
init_dx_dyin classgl_smooth
-
tex_inc_x
protected void tex_inc_x()
-
tex_dec_x
protected void tex_dec_x()
-
tex_inc_y
protected void tex_inc_y()
-
inc_x_inc_y
protected void inc_x_inc_y()
- Overrides:
inc_x_inc_yin classgl_smooth
-
dec_x_inc_y
protected void dec_x_inc_y()
- Overrides:
dec_x_inc_yin classgl_smooth
-
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_smooth
-
draw_horizontal_line
protected void draw_horizontal_line(int x1, int[] rgb1, int x2, int[] rgb2, int y, float w1, float s1, float t1, float r1)
-
set_left_tex
protected void set_left_tex(int pos)
-
init_tex_dx_dy
protected void init_tex_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_smooth
-
init_tex_other
protected void init_tex_other(boolean delta, int dy)
-
init_other
protected void init_other(boolean delta, int dy)- Overrides:
init_otherin classgl_smooth
-
tex_inc_y_once
protected void tex_inc_y_once()
-
inc_y_once
protected void inc_y_once()
- Overrides:
inc_y_oncein classgl_smooth
-
tex_inc_y_more
protected void tex_inc_y_more()
-
inc_y_more
protected void inc_y_more()
- Overrides:
inc_y_morein classgl_smooth
-
draw_horizontal_line
protected void draw_horizontal_line(int y)
- Overrides:
draw_horizontal_linein classgl_smooth
-
-