Class gle_phong

  • Direct Known Subclasses:
    gle_phong_z

    public class gle_phong
    extends gl_depth
    gle_phong is the rendering class for phong shading as an extension of jGL 2.5.
    Version:
    0.5, 23 Dev 2002
    Author:
    Robin Bing-Yu Chen
    • Field Detail

      • nx

        protected float nx
      • ny

        protected float ny
      • nz

        protected float nz
      • px

        protected float px
      • py

        protected float py
      • pz

        protected float pz
      • LeftPointNX

        protected float LeftPointNX
      • LeftPointNY

        protected float LeftPointNY
      • LeftPointNZ

        protected float LeftPointNZ
      • LeftPointPX

        protected float LeftPointPX
      • LeftPointPY

        protected float LeftPointPY
      • LeftPointPZ

        protected float LeftPointPZ
    • Constructor Detail

    • Method Detail

      • set_first_phong

        protected void set_first_phong()
      • init_phong_dx

        protected void init_phong_dx​(int dx)
      • init_phong_dy

        protected void init_phong_dy​(int dy)
      • init_dx

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

        protected void init_dy​(int dy)
        Overrides:
        init_dy in class gl_depth
      • phong_inc_x

        protected void phong_inc_x()
      • phong_dec_x

        protected void phong_dec_x()
      • phong_inc_y

        protected void phong_inc_y()
      • 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
      • get_color

        protected int get_color()
      • draw_horizontal_line

        protected void draw_horizontal_line​(int x1,
                                            int x2,
                                            int y,
                                            float nx1,
                                            float ny1,
                                            float nz1,
                                            float px1,
                                            float py1,
                                            float pz1)
      • set_left_phong

        protected void set_left_phong​(int pos)
      • set_left

        protected void set_left​(int pos)
        Overrides:
        set_left in class gl_depth
      • init_phong_dx_dy

        protected void init_phong_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_depth
      • init_phong_other

        protected void init_phong_other​(boolean delta,
                                        int dy)
      • init_other

        protected void init_other​(boolean delta,
                                  int dy)
        Overrides:
        init_other in class gl_depth
      • phong_inc_y_once

        protected void phong_inc_y_once()
      • phong_inc_y_more

        protected void phong_inc_y_more()