Class gl_smooth

Direct Known Subclasses:
gl_lit_tex, gl_smooth_z

public class gl_smooth extends gl_depth
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 Details

    • rgb

      protected int[] rgb
    • RightPointRGB

      protected int[] RightPointRGB
    • LeftPointRGB

      protected int[] LeftPointRGB
  • Constructor Details

  • Method Details

    • init_rgb

      protected void init_rgb(gl_vertex v1, gl_vertex v2)
    • init

      protected void init(gl_vertex v1, gl_vertex v2)
      Overrides:
      init in class gl_depth
    • set_first_rgb

      protected void set_first_rgb()
    • set_first_point

      protected void set_first_point()
      Overrides:
      set_first_point in class gl_depth
    • init_drgb

      protected void init_drgb(int d)
    • init_dx_dy

      protected void init_dx_dy(int dx, int dy)
      Overrides:
      init_dx_dy in class gl_render
    • inc_rgb

      protected void inc_rgb()
    • inc_x

      protected void inc_x()
      Overrides:
      inc_x in class gl_depth
    • dec_x

      protected void dec_x()
      Overrides:
      dec_x in class gl_depth
    • inc_y

      protected void inc_y()
      Overrides:
      inc_y in class gl_depth
    • inc_x_inc_y

      protected void inc_x_inc_y()
      Overrides:
      inc_x_inc_y in class gl_render
    • dec_x_inc_y

      protected void dec_x_inc_y()
      Overrides:
      dec_x_inc_y in class gl_render
    • put_pixel

      protected void put_pixel()
      Description copied from class: gl_render
      Will color the given pixel WITHOUT verifying depth buffer (see gl_depth.put_pixel()
      Overrides:
      put_pixel in class gl_depth
    • put_pixel_by_index

      protected void put_pixel_by_index()
      Description copied from class: gl_render
      Will color the given pixel WITHOUT verifying depth buffer (see gl_depth.put_pixel_by_index()
      Overrides:
      put_pixel_by_index in class gl_depth
    • draw_horizontal_line

      protected void draw_horizontal_line(int x1, int[] rgb1, int x2, int[] rgb2, int y)
    • init_color

      protected void init_color(gl_vertex v1, gl_vertex v2, gl_vertex v3)
    • init

      protected void init(gl_vertex v1, gl_vertex v2, gl_vertex v3)
      Overrides:
      init in class gl_depth
    • 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)
      Overrides:
      set_left in class gl_depth
    • set_right

      protected void set_right(int pos)
      Overrides:
      set_right in class gl_render
    • init_dx_dy

      protected void init_dx_dy(int area, int left, int right, int top)
      Overrides:
      init_dx_dy in class gl_depth
    • init_other

      protected void init_other(boolean delta, int dy)
      Overrides:
      init_other in class gl_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)
      Overrides:
      init_left in class gl_render
    • init_right

      protected void init_right(int down, int top)
      Overrides:
      init_right in class gl_render
    • inc_y_once

      protected void inc_y_once()
      Overrides:
      inc_y_once in class gl_depth
    • inc_y_more

      protected void inc_y_more()
      Overrides:
      inc_y_more in class gl_depth
    • inc_left_rgb

      protected void inc_left_rgb()
    • inc_right_rgb

      protected void inc_right_rgb()
    • inc_left

      protected void inc_left()
      Overrides:
      inc_left in class gl_render
    • inc_right

      protected void inc_right()
      Overrides:
      inc_right in class gl_render
    • draw_horizontal_line

      protected void draw_horizontal_line(int y)
      Overrides:
      draw_horizontal_line in class gl_depth