Package jgl.context

Class gl_object

  • Direct Known Subclasses:
    gl_context, gl_list

    public abstract class gl_object
    extends Object
    gl_object is the super class of context and list of jGL 2.4.
    Version:
    0.7, 3 Dec 2001
    Author:
    Robin Bing-Yu Chen
    • Field Detail

      • throwExceptionOnGLError

        protected boolean throwExceptionOnGLError
        If true, will trigger a RuntimeException upon any OpenGL error, otherwise send message to System.err.println(). In case debug is set to false, all OpenGL errors are muted.
      • IDENTITY

        public static final float[] IDENTITY
      • RenderMode

        public int RenderMode
        GL_RENDER_MODE: glRenderMode() setting
      • Mode

        public int Mode
      • DBflag

        public boolean DBflag
      • ErrorValue

        public int ErrorValue
    • Constructor Detail

      • gl_object

        public gl_object()
    • Method Detail

      • get_rotate

        protected float[] get_rotate​(float angle,
                                     float x,
                                     float y,
                                     float z)
        Protected Member Functions
      • get_scale

        protected float[] get_scale​(float x,
                                    float y,
                                    float z)
      • get_translate

        protected float[] get_translate​(float x,
                                        float y,
                                        float z)
      • gl_error

        public void gl_error​(int error,
                             String s)
        Public Member Functions
      • setThrowExceptionOnGLError

        public void setThrowExceptionOnGLError​(boolean status)
      • getThrowExceptionOnGLError

        public boolean getThrowExceptionOnGLError()
      • gl_eval_coord_1

        public void gl_eval_coord_1​(float u)
      • gl_eval_coord_2

        public void gl_eval_coord_2​(float u,
                                    float v)
      • gl_eval_mesh_1

        public void gl_eval_mesh_1​(int mode,
                                   int nu1,
                                   int nu2)
      • gl_eval_mesh_2

        public void gl_eval_mesh_2​(int mode,
                                   int nu1,
                                   int nu2,
                                   int nv1,
                                   int nv2)
      • gl_clear_color

        public abstract void gl_clear_color​(float red,
                                            float green,
                                            float blue,
                                            float alpha)
      • gl_clear_depth_buffer

        public abstract void gl_clear_depth_buffer()
      • gl_clear_color_buffer

        public abstract void gl_clear_color_buffer()
      • gl_clear_stencil_buffer

        public abstract void gl_clear_stencil_buffer()
      • gl_color_mask

        public abstract void gl_color_mask​(boolean red,
                                           boolean green,
                                           boolean blue,
                                           boolean alpha)
      • gl_blend_func

        public abstract void gl_blend_func​(int sfactor,
                                           int dfactor)
      • gl_cull_face

        public abstract void gl_cull_face​(int mode)
      • gl_front_face

        public abstract void gl_front_face​(int mode)
      • gl_point_size

        public abstract void gl_point_size​(float size)
      • gl_line_width

        public abstract void gl_line_width​(float width)
      • gl_line_stipple

        public abstract void gl_line_stipple​(int factor,
                                             short pattern)
      • gl_polygon_mode

        public abstract void gl_polygon_mode​(int face,
                                             int mode)
      • gl_polygon_stipple

        public abstract void gl_polygon_stipple​(byte[] mask)
      • gl_clip_plane

        public abstract void gl_clip_plane​(int plane,
                                           float[] equation)
      • gl_get_clip_plane

        public abstract float[] gl_get_clip_plane​(int plane)
      • gl_enable

        public abstract void gl_enable​(int cap,
                                       boolean state)
      • gl_is_enabled

        public abstract boolean gl_is_enabled​(int cap)
      • gl_render_mode

        public abstract int gl_render_mode​(int mode)
      • gl_clear_depth

        public abstract void gl_clear_depth​(float depth)
      • gl_depth_func

        public abstract void gl_depth_func​(int func)
      • gl_depth_mask

        public abstract void gl_depth_mask​(boolean flag)
      • gl_depth_range

        public abstract void gl_depth_range​(float n,
                                            float f)
      • gl_matrix_mode

        public abstract void gl_matrix_mode​(int mode)
      • gl_mult_matrix

        public abstract void gl_mult_matrix​(float[] m)
      • gl_viewport

        public abstract void gl_viewport​(int x,
                                         int y,
                                         int width,
                                         int height)
      • gl_push_matrix

        public abstract void gl_push_matrix()
      • gl_pop_matrix

        public abstract void gl_pop_matrix()
      • gl_load_identity_matrix

        public abstract void gl_load_identity_matrix()
      • gl_load_matrix

        public abstract void gl_load_matrix​(float[] m)
      • gl_rotate

        public abstract void gl_rotate​(float angle,
                                       float x,
                                       float y,
                                       float z)
      • gl_scale

        public abstract void gl_scale​(float x,
                                      float y,
                                      float z)
      • gl_translate

        public abstract void gl_translate​(float x,
                                          float y,
                                          float z)
      • gl_call_list

        public abstract void gl_call_list​(int list)
      • gl_call_offset

        public abstract void gl_call_offset​(int offset)
      • gl_list_base

        public abstract void gl_list_base​(int base)
      • gl_begin

        public abstract void gl_begin​(int mode)
      • gl_end

        public abstract void gl_end()
      • gl_vertex

        public abstract void gl_vertex​(float x,
                                       float y,
                                       float z,
                                       float w)
      • gl_normal

        public abstract void gl_normal​(float x,
                                       float y,
                                       float z)
      • gl_index

        public abstract void gl_index​(int c)
      • gl_color

        public abstract void gl_color​(float red,
                                      float green,
                                      float blue,
                                      float alpha)
      • gl_tex_coord

        public abstract void gl_tex_coord​(float s,
                                          float t,
                                          float r,
                                          float q)
      • gl_raster_pos

        public abstract void gl_raster_pos​(float x,
                                           float y,
                                           float z,
                                           float w)
      • gl_shade_model

        public abstract void gl_shade_model​(int mode)
      • gl_light

        public abstract void gl_light​(int light,
                                      int pname,
                                      float[] params)
      • gl_get_light

        public abstract float[] gl_get_light​(int light,
                                             int pname)
      • gl_light_model

        public abstract void gl_light_model​(int pname,
                                            float[] params)
      • gl_material

        public abstract void gl_material​(int face,
                                         int pname,
                                         float[] params)
      • gl_get_material

        public abstract float[] gl_get_material​(int face,
                                                int pname)
      • gl_color_material

        public abstract void gl_color_material​(int face,
                                               int mode)
      • gl_pixel_store

        public abstract void gl_pixel_store​(int pname,
                                            int param)
      • gl_pixel_transfer

        public abstract void gl_pixel_transfer​(int pname,
                                               float param)
      • gl_read_index_pixels

        public abstract void gl_read_index_pixels​(int x,
                                                  int y,
                                                  int width,
                                                  int height,
                                                  int size,
                                                  Object pixels)
      • gl_read_color_pixels

        public abstract void gl_read_color_pixels​(int x,
                                                  int y,
                                                  int width,
                                                  int height,
                                                  int format,
                                                  int size,
                                                  Object pixels)
      • gl_read_stencil_pixels

        public abstract void gl_read_stencil_pixels​(int x,
                                                    int y,
                                                    int width,
                                                    int height,
                                                    int size,
                                                    Object pixels)
      • gl_read_depth_pixels

        public abstract void gl_read_depth_pixels​(int x,
                                                  int y,
                                                  int width,
                                                  int height,
                                                  int size,
                                                  Object pixels)
      • gl_draw_index_pixels

        public abstract void gl_draw_index_pixels​(int width,
                                                  int height,
                                                  int size,
                                                  Object pixels)
      • gl_draw_color_pixels

        public abstract void gl_draw_color_pixels​(int width,
                                                  int height,
                                                  int format,
                                                  int size,
                                                  Object pixels)
      • gl_draw_stencil_pixels

        public abstract void gl_draw_stencil_pixels​(int width,
                                                    int height,
                                                    int size,
                                                    Object pixels)
      • gl_draw_depth_pixels

        public abstract void gl_draw_depth_pixels​(int width,
                                                  int height,
                                                  int size,
                                                  Object pixels)
      • gl_copy_color_pixels

        public abstract void gl_copy_color_pixels​(int x,
                                                  int y,
                                                  int width,
                                                  int height)
      • gl_copy_stencil_pixels

        public abstract void gl_copy_stencil_pixels​(int x,
                                                    int y,
                                                    int width,
                                                    int height)
      • gl_copy_depth_pixels

        public abstract void gl_copy_depth_pixels​(int x,
                                                  int y,
                                                  int width,
                                                  int height)
      • gl_stencil_func

        public abstract void gl_stencil_func​(int func,
                                             int ref,
                                             int mask)
      • gl_stencil_mask

        public abstract void gl_stencil_mask​(int mask)
      • gl_stencil_op

        public abstract void gl_stencil_op​(int fail,
                                           int zfail,
                                           int zpass)
      • gl_clear_stencil

        public abstract void gl_clear_stencil​(int s)
      • gl_tex_gen_i

        public abstract void gl_tex_gen_i​(int coord,
                                          int param)
      • gl_tex_gen_f

        public abstract void gl_tex_gen_f​(int coord,
                                          int pname,
                                          float[] params)
      • gl_tex_env_i

        public abstract void gl_tex_env_i​(int param)
      • gl_tex_env_f

        public abstract void gl_tex_env_f​(float[] params)
      • gl_tex_parameter

        public abstract void gl_tex_parameter​(int target,
                                              int pname,
                                              float[] params)
      • gl_tex_image_1d

        public abstract void gl_tex_image_1d​(int target,
                                             int level,
                                             int components,
                                             int width,
                                             int border,
                                             int format,
                                             int size,
                                             Object pixels)
      • gl_tex_image_2d

        public abstract void gl_tex_image_2d​(int target,
                                             int level,
                                             int components,
                                             int width,
                                             int height,
                                             int border,
                                             int format,
                                             int size,
                                             Object pixels)
      • gl_tex_image_3d

        public abstract void gl_tex_image_3d​(int target,
                                             int level,
                                             int components,
                                             int width,
                                             int height,
                                             int depth,
                                             int border,
                                             int format,
                                             int size,
                                             Object pixels)
      • gl_bind_texture

        public abstract void gl_bind_texture​(int target,
                                             int texture)
      • gl_tex_sub_image_1d

        public abstract void gl_tex_sub_image_1d​(int target,
                                                 int level,
                                                 int xoffset,
                                                 int width,
                                                 int format,
                                                 int size,
                                                 Object pixels)
      • gl_tex_sub_image_2d

        public abstract void gl_tex_sub_image_2d​(int target,
                                                 int level,
                                                 int xoffset,
                                                 int yoffset,
                                                 int width,
                                                 int height,
                                                 int format,
                                                 int size,
                                                 Object pixels)
      • gl_tex_sub_image_3d

        public abstract void gl_tex_sub_image_3d​(int target,
                                                 int level,
                                                 int xoffset,
                                                 int yoffset,
                                                 int zoffset,
                                                 int width,
                                                 int height,
                                                 int depth,
                                                 int format,
                                                 int size,
                                                 Object pixels)
      • gl_feedback_buffer

        public abstract void gl_feedback_buffer​(int size,
                                                int type,
                                                float[] buffer)
      • gl_pass_through

        public abstract void gl_pass_through​(float token)
      • gl_select_buffer

        public abstract void gl_select_buffer​(int size,
                                              int[] buffer)
      • gl_init_names

        public abstract void gl_init_names()
      • gl_load_name

        public abstract void gl_load_name​(int name)
      • gl_push_name

        public abstract void gl_push_name​(int name)
      • gl_pop_name

        public abstract void gl_pop_name()