Package jgl.context

Class gl_context

java.lang.Object
jgl.context.gl_object
jgl.context.gl_context
Direct Known Subclasses:
gle_context

public class gl_context extends gl_object
gl_context is the context class of jGL 2.4.
Version:
0.10, 21 Nov 2006
Author:
Robin Bing-Yu Chen
  • Field Details

    • ModelViewMatrix

      public float[] ModelViewMatrix
      GL_MODELVIEW_MATRIX: Modelview matrix stack
    • ModelViewInv

      public float[] ModelViewInv
    • ModelViewInvValid

      public boolean ModelViewInvValid
    • ModelViewStack

      public Stack<float[]> ModelViewStack
      GL_MODELVIEW_STACK_DEPTH: Modelview matrix stack pointer
    • ProjectionMatrix

      public float[] ProjectionMatrix
      GL_PROJECTION_MATRIX: Projection matrix stack
    • ProjectionStack

      public Stack<float[]> ProjectionStack
      GL_PROJECTION_STACK_DEPTH: Projection matrix stack pointer
    • TextureMatrix

      public float[] TextureMatrix
      GL_TEXTURE_MATRIX: Texture matrix stack
    • IdentityTexMat

      public boolean IdentityTexMat
    • TextureStack

      public Stack<float[]> TextureStack
      GL_TEXTURE_STACK_DEPTH: Texture matrix stack pointer
    • Current

      public gl_current Current
      All other classes for state variables
    • Transform

      public gl_transform Transform
    • Viewport

      public gl_viewport Viewport
    • Lighting

      public gl_lighting Lighting
    • Raster

      public gl_raster Raster
    • Texture

      public gl_texture Texture
    • ColorBuffer

      public gl_colorbuffer ColorBuffer
    • DepthBuffer

      public gl_depthbuffer DepthBuffer
    • StencilBuffer

      public gl_stencilbuffer StencilBuffer
    • Pixel

      public gl_pixel Pixel
    • Select

      public gl_select Select
      All other classes for capabilities
    • Feedback

      public gl_feedback Feedback
    • AttribStack

      public Stack<gl_list_item> AttribStack
      Attrib stack
    • CR

      public gl_pointer CR
      Current pointer to clipping, geometry, rendering classes
    • EyeCoord

      public float[] EyeCoord
      The eye coord of Current.Vertex and Current.Normal
    • EyeNormal

      public float[] EyeNormal
    • ListBase

      public int ListBase
      GL_LIST_BASE: Setting of glListBase ()
    • ListIndex

      public int ListIndex
      GL_LIST_INDEX: Number of display list under construction
    • ListMode

      public int ListMode
      GL_LIST_MODE: Mode of display list under construction
    • ListGroup

      public Vector<gl_list> ListGroup
      the vector of display list group
    • TexList

      public Vector<gl_texture_obj> TexList
      the vector of texture list
    • MAX_LIGHTS

      public static final int MAX_LIGHTS
      Constant of Context of JavaGL
      See Also:
    • MAX_CLIP_PLANES

      public static final int MAX_CLIP_PLANES
      See Also:
    • MAX_TEXTURE_LEVELS

      public static final int MAX_TEXTURE_LEVELS
      See Also:
    • MAX_TEXTURE_SIZE

      public static final int MAX_TEXTURE_SIZE
      See Also:
    • MAX_3D_TEXTURE_LEVELS

      public static final int MAX_3D_TEXTURE_LEVELS
      See Also:
    • MAX_3D_TEXTURE_SIZE

      public static final int MAX_3D_TEXTURE_SIZE
      See Also:
    • MAX_EVAL_ORDER

      public static final int MAX_EVAL_ORDER
      See Also:
    • MAX_NAME_STACK_DEPTH

      public static final int MAX_NAME_STACK_DEPTH
      See Also:
    • MIN_POINT_SIZE

      public static final float MIN_POINT_SIZE
      See Also:
    • MAX_POINT_SIZE

      public static final float MAX_POINT_SIZE
      See Also:
    • POINT_SIZE_GRANULARITY

      public static final float POINT_SIZE_GRANULARITY
      See Also:
    • MIN_LINE_SIZE

      public static final float MIN_LINE_SIZE
      See Also:
    • MAX_LINE_SIZE

      public static final float MAX_LINE_SIZE
      See Also:
    • LINE_WIDTH_GRANULARITY

      public static final float LINE_WIDTH_GRANULARITY
      See Also:
  • Constructor Details

    • gl_context

      public gl_context()
  • Method Details

    • ModelViewTransformation

      public float[] ModelViewTransformation(float[] ObjCoord)
      Public Member Functions for GL
    • NormalTransformation

      public float[] NormalTransformation(float[] NorCoord)
    • VertexTransformation

      public float[] VertexTransformation(float[] EyeCoord)
    • TextureTransformation

      public float[] TextureTransformation(float[] TexCoord)
    • PerspectiveDivision

      public float[] PerspectiveDivision(float[] ClipCoord)
    • ColorTransformation

      public int ColorTransformation()
    • gl_initialize_context

      public void gl_initialize_context()
    • gl_initialize_context

      public void gl_initialize_context(int w, int h)
    • gl_clear_color

      public void gl_clear_color(float r, float g, float b, float a)
      Specified by:
      gl_clear_color in class gl_object
    • gl_clear_depth_buffer

      public void gl_clear_depth_buffer()
      Specified by:
      gl_clear_depth_buffer in class gl_object
    • gl_clear_color_buffer

      public void gl_clear_color_buffer()
      Specified by:
      gl_clear_color_buffer in class gl_object
    • gl_clear_stencil_buffer

      public void gl_clear_stencil_buffer()
      Specified by:
      gl_clear_stencil_buffer in class gl_object
    • gl_color_mask

      public void gl_color_mask(boolean red, boolean green, boolean blue, boolean alpha)
      Specified by:
      gl_color_mask in class gl_object
    • gl_blend_func

      public void gl_blend_func(int sfactor, int dfactor)
      Specified by:
      gl_blend_func in class gl_object
    • gl_cull_face

      public void gl_cull_face(int mode)
      Specified by:
      gl_cull_face in class gl_object
    • gl_front_face

      public void gl_front_face(int mode)
      Specified by:
      gl_front_face in class gl_object
    • gl_point_size

      public void gl_point_size(float size)
      Specified by:
      gl_point_size in class gl_object
    • gl_line_width

      public void gl_line_width(float width)
      Specified by:
      gl_line_width in class gl_object
    • gl_line_stipple

      public void gl_line_stipple(int factor, short pattern)
      Specified by:
      gl_line_stipple in class gl_object
    • gl_polygon_mode

      public void gl_polygon_mode(int face, int mode)
      Specified by:
      gl_polygon_mode in class gl_object
    • gl_polygon_stipple

      public void gl_polygon_stipple(byte[] mask)
      Specified by:
      gl_polygon_stipple in class gl_object
    • gl_clip_plane

      public void gl_clip_plane(int plane, float[] eq)
      Specified by:
      gl_clip_plane in class gl_object
    • gl_get_clip_plane

      public float[] gl_get_clip_plane(int plane)
      Specified by:
      gl_get_clip_plane in class gl_object
    • gl_enable

      public void gl_enable(int cap, boolean state)
      Specified by:
      gl_enable in class gl_object
    • gl_is_enabled

      public boolean gl_is_enabled(int cap)
      Specified by:
      gl_is_enabled in class gl_object
    • gl_push_attrib

      public void gl_push_attrib(int mask)
    • gl_pop_attrib

      public void gl_pop_attrib()
    • gl_render_mode

      public int gl_render_mode(int mode)
      Specified by:
      gl_render_mode in class gl_object
    • gl_clear_depth

      public void gl_clear_depth(float depth)
      Specified by:
      gl_clear_depth in class gl_object
    • gl_depth_func

      public void gl_depth_func(int func)
      Specified by:
      gl_depth_func in class gl_object
    • gl_depth_mask

      public void gl_depth_mask(boolean flag)
      Specified by:
      gl_depth_mask in class gl_object
    • gl_depth_range

      public void gl_depth_range(float n, float f)
      Specified by:
      gl_depth_range in class gl_object
    • gl_matrix_mode

      public void gl_matrix_mode(int mode)
      Specified by:
      gl_matrix_mode in class gl_object
    • gl_mult_matrix

      public void gl_mult_matrix(float[] m)
      Specified by:
      gl_mult_matrix in class gl_object
    • gl_viewport

      public void gl_viewport(int x, int y, int width, int height)
      Specified by:
      gl_viewport in class gl_object
    • gl_push_matrix

      public void gl_push_matrix()
      Specified by:
      gl_push_matrix in class gl_object
    • gl_pop_matrix

      public void gl_pop_matrix()
      Specified by:
      gl_pop_matrix in class gl_object
    • gl_load_identity_matrix

      public void gl_load_identity_matrix()
      Specified by:
      gl_load_identity_matrix in class gl_object
    • gl_load_matrix

      public void gl_load_matrix(float[] m)
      Specified by:
      gl_load_matrix in class gl_object
    • gl_rotate

      public void gl_rotate(float angle, float x, float y, float z)
      Specified by:
      gl_rotate in class gl_object
    • gl_scale

      public void gl_scale(float x, float y, float z)
      Specified by:
      gl_scale in class gl_object
    • gl_translate

      public void gl_translate(float x, float y, float z)
      Specified by:
      gl_translate in class gl_object
    • gl_is_list

      public boolean gl_is_list(int list)
    • gl_delete_lists

      public void gl_delete_lists(int list, int range)
    • gl_gen_lists

      public int gl_gen_lists(int range)
    • gl_new_list

      public void gl_new_list(int list)
    • gl_end_list

      public void gl_end_list(gl_list CC)
    • gl_call_list

      public void gl_call_list(int list)
      Specified by:
      gl_call_list in class gl_object
    • gl_call_offset

      public void gl_call_offset(int offset)
      Specified by:
      gl_call_offset in class gl_object
    • gl_list_base

      public void gl_list_base(int base)
      Specified by:
      gl_list_base in class gl_object
    • gl_begin

      public void gl_begin(int mode)
      Specified by:
      gl_begin in class gl_object
    • gl_end

      public void gl_end()
      Specified by:
      gl_end in class gl_object
    • gl_vertex

      public void gl_vertex(float x, float y, float z, float w)
      Specified by:
      gl_vertex in class gl_object
    • gl_normal

      public void gl_normal(float x, float y, float z)
      Specified by:
      gl_normal in class gl_object
    • gl_index

      public void gl_index(int c)
      Specified by:
      gl_index in class gl_object
    • gl_color

      public void gl_color(float red, float green, float blue, float alpha)
      Specified by:
      gl_color in class gl_object
    • gl_tex_coord

      public void gl_tex_coord(float s, float t, float r, float q)
      Specified by:
      gl_tex_coord in class gl_object
    • gl_raster_pos

      public void gl_raster_pos(float x, float y, float z, float w)
      Specified by:
      gl_raster_pos in class gl_object
    • gl_shade_model

      public void gl_shade_model(int mode)
      Specified by:
      gl_shade_model in class gl_object
    • gl_light

      public void gl_light(int light, int pname, float[] params)
      Specified by:
      gl_light in class gl_object
    • gl_get_light

      public float[] gl_get_light(int light, int pname)
      Specified by:
      gl_get_light in class gl_object
    • gl_light_model

      public void gl_light_model(int pname, float[] params)
      Specified by:
      gl_light_model in class gl_object
    • gl_material

      public void gl_material(int face, int pname, float[] params)
      Specified by:
      gl_material in class gl_object
    • gl_get_material

      public float[] gl_get_material(int face, int pname)
      Specified by:
      gl_get_material in class gl_object
    • gl_color_material

      public void gl_color_material(int face, int mode)
      Specified by:
      gl_color_material in class gl_object
    • gl_pixel_store

      public void gl_pixel_store(int pname, int param)
      Specified by:
      gl_pixel_store in class gl_object
    • gl_pixel_transfer

      public void gl_pixel_transfer(int pname, float param)
      Specified by:
      gl_pixel_transfer in class gl_object
    • gl_read_index_pixels

      public void gl_read_index_pixels(int x, int y, int width, int height, int size, Object pixels)
      Specified by:
      gl_read_index_pixels in class gl_object
    • gl_read_color_pixels

      public void gl_read_color_pixels(int x, int y, int width, int height, int format, int size, Object pixels)
      Specified by:
      gl_read_color_pixels in class gl_object
    • gl_read_stencil_pixels

      public void gl_read_stencil_pixels(int x, int y, int width, int height, int size, Object pixels)
      Specified by:
      gl_read_stencil_pixels in class gl_object
    • gl_read_depth_pixels

      public void gl_read_depth_pixels(int x, int y, int width, int height, int size, Object pixels)
      Specified by:
      gl_read_depth_pixels in class gl_object
    • gl_draw_index_pixels

      public void gl_draw_index_pixels(int width, int height, int size, Object pixels)
      Specified by:
      gl_draw_index_pixels in class gl_object
    • gl_draw_color_pixels

      public void gl_draw_color_pixels(int width, int height, int format, int size, Object pixels)
      Specified by:
      gl_draw_color_pixels in class gl_object
    • gl_draw_stencil_pixels

      public void gl_draw_stencil_pixels(int width, int height, int size, Object pixels)
      Specified by:
      gl_draw_stencil_pixels in class gl_object
    • gl_draw_depth_pixels

      public void gl_draw_depth_pixels(int width, int height, int size, Object pixels)
      Specified by:
      gl_draw_depth_pixels in class gl_object
    • gl_copy_color_pixels

      public void gl_copy_color_pixels(int x, int y, int width, int height)
      Specified by:
      gl_copy_color_pixels in class gl_object
    • gl_copy_stencil_pixels

      public void gl_copy_stencil_pixels(int x, int y, int width, int height)
      Specified by:
      gl_copy_stencil_pixels in class gl_object
    • gl_copy_depth_pixels

      public void gl_copy_depth_pixels(int x, int y, int width, int height)
      Specified by:
      gl_copy_depth_pixels in class gl_object
    • gl_stencil_func

      public void gl_stencil_func(int func, int ref, int mask)
      Specified by:
      gl_stencil_func in class gl_object
    • gl_stencil_mask

      public void gl_stencil_mask(int mask)
      Specified by:
      gl_stencil_mask in class gl_object
    • gl_stencil_op

      public void gl_stencil_op(int fail, int zfail, int zpass)
      Specified by:
      gl_stencil_op in class gl_object
    • gl_clear_stencil

      public void gl_clear_stencil(int s)
      Specified by:
      gl_clear_stencil in class gl_object
    • gl_tex_gen_i

      public void gl_tex_gen_i(int coord, int param)
      Specified by:
      gl_tex_gen_i in class gl_object
    • gl_tex_gen_f

      public void gl_tex_gen_f(int coord, int pname, float[] params)
      Specified by:
      gl_tex_gen_f in class gl_object
    • gl_tex_env_i

      public void gl_tex_env_i(int param)
      Specified by:
      gl_tex_env_i in class gl_object
    • gl_tex_env_f

      public void gl_tex_env_f(float[] params)
      Specified by:
      gl_tex_env_f in class gl_object
    • gl_tex_parameter

      public void gl_tex_parameter(int target, int pname, float[] params)
      Specified by:
      gl_tex_parameter in class gl_object
    • gl_tex_image_1d

      public void gl_tex_image_1d(int target, int level, int components, int width, int border, int format, int size, Object pixels)
      Specified by:
      gl_tex_image_1d in class gl_object
    • gl_tex_image_2d

      public void gl_tex_image_2d(int target, int level, int components, int width, int height, int border, int format, int size, Object pixels)
      Specified by:
      gl_tex_image_2d in class gl_object
    • gl_tex_image_3d

      public 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)
      Specified by:
      gl_tex_image_3d in class gl_object
    • gl_get_tex_image

      public void gl_get_tex_image(int target, int level, int format, int size, Object pixels)
    • gl_gen_textures

      public void gl_gen_textures(int n, int[] textures)
    • gl_delete_textures

      public void gl_delete_textures(int n, int[] textures)
    • gl_bind_texture

      public void gl_bind_texture(int target, int texture)
      Specified by:
      gl_bind_texture in class gl_object
    • gl_is_texture

      public boolean gl_is_texture(int texture)
    • gl_tex_sub_image_1d

      public void gl_tex_sub_image_1d(int target, int level, int xoffset, int width, int format, int size, Object pixels)
      Specified by:
      gl_tex_sub_image_1d in class gl_object
    • gl_tex_sub_image_2d

      public void gl_tex_sub_image_2d(int target, int level, int xoffset, int yoffset, int width, int height, int format, int size, Object pixels)
      Specified by:
      gl_tex_sub_image_2d in class gl_object
    • gl_tex_sub_image_3d

      public 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)
      Specified by:
      gl_tex_sub_image_3d in class gl_object
    • gl_map_1

      public int gl_map_1(int target, float u1, float u2, int stride, int order, float[][] points)
    • gl_map_2

      public int gl_map_2(int target, float u1, float u2, int ustride, int uorder, float v1, float v2, int vstride, int vorder, float[][][] points)
    • gl_map_grid_1

      public void gl_map_grid_1(int un, float u1, float u2)
    • gl_map_grid_2

      public void gl_map_grid_2(int un, float u1, float u2, int vn, float v1, float v2)
    • gl_eval_point_1

      public void gl_eval_point_1(int i)
    • gl_eval_point_2

      public void gl_eval_point_2(int i, int j)
    • gl_feedback_buffer

      public void gl_feedback_buffer(int size, int type, float[] buffer)
      Specified by:
      gl_feedback_buffer in class gl_object
    • gl_pass_through

      public void gl_pass_through(float token)
      Specified by:
      gl_pass_through in class gl_object
    • gl_select_buffer

      public void gl_select_buffer(int size, int[] buffer)
      Specified by:
      gl_select_buffer in class gl_object
    • gl_init_names

      public void gl_init_names()
      Specified by:
      gl_init_names in class gl_object
    • gl_load_name

      public void gl_load_name(int name)
      Specified by:
      gl_load_name in class gl_object
    • gl_push_name

      public void gl_push_name(int name)
      Specified by:
      gl_push_name in class gl_object
    • gl_pop_name

      public void gl_pop_name()
      Specified by:
      gl_pop_name in class gl_object