Class gl_depth

  • Direct Known Subclasses:
    gl_smooth, gl_tex, gle_phong

    public class gl_depth
    extends gl_render
    gl_depth is the rendering class for depth of JavaGL 2.1.
    Version:
    0.4, 29 Nov 1999
    Author:
    Robin Bing-Yu Chen
    • Field Detail

      • LineZ

        protected float[] LineZ
      • z

        protected float z
      • dzdx

        protected float dzdx
      • dzdy

        protected float dzdy
      • LeftPointZ

        protected float LeftPointZ
    • Constructor Detail

    • Method Detail

      • set_first_z

        protected void set_first_z()
      • init_z_dx

        protected void init_z_dx​(int dx)
      • init_z_dy

        protected void init_z_dy​(int dy)
      • init_dx

        protected void init_dx​(int dx)
        Overrides:
        init_dx in class gl_render
      • init_dy

        protected void init_dy​(int dy)
        Overrides:
        init_dy in class gl_render
      • z_inc_x

        protected void z_inc_x()
      • z_dec_x

        protected void z_dec_x()
      • z_inc_y

        protected void z_inc_y()
      • inc_x

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

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

        protected void inc_y()
        Overrides:
        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 put_pixel()
        Overrides:
        put_pixel in class gl_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)
      • set_left

        protected void set_left​(int pos)
        Overrides:
        set_left in class gl_render
      • 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_dy in class gl_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_other in class gl_render
      • z_inc_y_once

        protected void z_inc_y_once()
      • z_inc_y_more

        protected void z_inc_y_more()