Package jgl.context
Class gl_context
java.lang.Object
jgl.context.gl_object
jgl.context.gl_context
- Direct Known Subclasses:
gle_context
gl_context is the context class of jGL 2.4.
- Version:
- 0.10, 21 Nov 2006
- Author:
- Robin Bing-Yu Chen
-
Field Summary
FieldsModifier and TypeFieldDescriptionAttrib stackCurrent pointer to clipping, geometry, rendering classesAll other classes for state variablesfloat[]The eye coord of Current.Vertex and Current.Normalfloat[]booleanstatic final floatintGL_LIST_BASE: Setting of glListBase ()the vector of display list groupintGL_LIST_INDEX: Number of display list under constructionintGL_LIST_MODE: Mode of display list under constructionstatic final intstatic final intstatic final intstatic final intstatic final intConstant of Context of JavaGLstatic final floatstatic final intstatic final floatstatic final intstatic final intstatic final floatstatic final floatfloat[]booleanfloat[]GL_MODELVIEW_MATRIX: Modelview matrix stackStack<float[]>GL_MODELVIEW_STACK_DEPTH: Modelview matrix stack pointerstatic final floatfloat[]GL_PROJECTION_MATRIX: Projection matrix stackStack<float[]>GL_PROJECTION_STACK_DEPTH: Projection matrix stack pointerAll other classes for capabilitiesthe vector of texture listfloat[]GL_TEXTURE_MATRIX: Texture matrix stackStack<float[]>GL_TEXTURE_STACK_DEPTH: Texture matrix stack pointerFields inherited from class jgl.context.gl_object
DBflag, debug, ErrorValue, Eval, IDENTITY, Mode, RenderMode, throwExceptionOnGLError -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidgl_begin(int mode) voidgl_bind_texture(int target, int texture) voidgl_blend_func(int sfactor, int dfactor) voidgl_call_list(int list) voidgl_call_offset(int offset) voidgl_clear_color(float r, float g, float b, float a) voidvoidgl_clear_depth(float depth) voidvoidgl_clear_stencil(int s) voidvoidgl_clip_plane(int plane, float[] eq) voidgl_color(float red, float green, float blue, float alpha) voidgl_color_mask(boolean red, boolean green, boolean blue, boolean alpha) voidgl_color_material(int face, int mode) voidgl_copy_color_pixels(int x, int y, int width, int height) voidgl_copy_depth_pixels(int x, int y, int width, int height) voidgl_copy_stencil_pixels(int x, int y, int width, int height) voidgl_cull_face(int mode) voidgl_delete_lists(int list, int range) voidgl_delete_textures(int n, int[] textures) voidgl_depth_func(int func) voidgl_depth_mask(boolean flag) voidgl_depth_range(float n, float f) voidgl_draw_color_pixels(int width, int height, int format, int size, Object pixels) voidgl_draw_depth_pixels(int width, int height, int size, Object pixels) voidgl_draw_index_pixels(int width, int height, int size, Object pixels) voidgl_draw_stencil_pixels(int width, int height, int size, Object pixels) voidgl_enable(int cap, boolean state) voidgl_end()voidgl_end_list(gl_list CC) voidgl_eval_point_1(int i) voidgl_eval_point_2(int i, int j) voidgl_feedback_buffer(int size, int type, float[] buffer) voidgl_front_face(int mode) intgl_gen_lists(int range) voidgl_gen_textures(int n, int[] textures) float[]gl_get_clip_plane(int plane) float[]gl_get_light(int light, int pname) float[]gl_get_material(int face, int pname) voidgl_get_tex_image(int target, int level, int format, int size, Object pixels) voidgl_index(int c) voidvoidvoidgl_initialize_context(int w, int h) booleangl_is_enabled(int cap) booleangl_is_list(int list) booleangl_is_texture(int texture) voidgl_light(int light, int pname, float[] params) voidgl_light_model(int pname, float[] params) voidgl_line_stipple(int factor, short pattern) voidgl_line_width(float width) voidgl_list_base(int base) voidvoidgl_load_matrix(float[] m) voidgl_load_name(int name) intgl_map_1(int target, float u1, float u2, int stride, int order, float[][] points) intgl_map_2(int target, float u1, float u2, int ustride, int uorder, float v1, float v2, int vstride, int vorder, float[][][] points) voidgl_map_grid_1(int un, float u1, float u2) voidgl_map_grid_2(int un, float u1, float u2, int vn, float v1, float v2) voidgl_material(int face, int pname, float[] params) voidgl_matrix_mode(int mode) voidgl_mult_matrix(float[] m) voidgl_new_list(int list) voidgl_normal(float x, float y, float z) voidgl_pass_through(float token) voidgl_pixel_store(int pname, int param) voidgl_pixel_transfer(int pname, float param) voidgl_point_size(float size) voidgl_polygon_mode(int face, int mode) voidgl_polygon_stipple(byte[] mask) voidvoidvoidvoidgl_push_attrib(int mask) voidvoidgl_push_name(int name) voidgl_raster_pos(float x, float y, float z, float w) voidgl_read_color_pixels(int x, int y, int width, int height, int format, int size, Object pixels) voidgl_read_depth_pixels(int x, int y, int width, int height, int size, Object pixels) voidgl_read_index_pixels(int x, int y, int width, int height, int size, Object pixels) voidgl_read_stencil_pixels(int x, int y, int width, int height, int size, Object pixels) intgl_render_mode(int mode) voidgl_rotate(float angle, float x, float y, float z) voidgl_scale(float x, float y, float z) voidgl_select_buffer(int size, int[] buffer) voidgl_shade_model(int mode) voidgl_stencil_func(int func, int ref, int mask) voidgl_stencil_mask(int mask) voidgl_stencil_op(int fail, int zfail, int zpass) voidgl_tex_coord(float s, float t, float r, float q) voidgl_tex_env_f(float[] params) voidgl_tex_env_i(int param) voidgl_tex_gen_f(int coord, int pname, float[] params) voidgl_tex_gen_i(int coord, int param) voidgl_tex_image_1d(int target, int level, int components, int width, int border, int format, int size, Object pixels) voidgl_tex_image_2d(int target, int level, int components, int width, int height, int border, int format, int size, Object pixels) voidgl_tex_image_3d(int target, int level, int components, int width, int height, int depth, int border, int format, int size, Object pixels) voidgl_tex_parameter(int target, int pname, float[] params) voidgl_tex_sub_image_1d(int target, int level, int xoffset, int width, int format, int size, Object pixels) voidgl_tex_sub_image_2d(int target, int level, int xoffset, int yoffset, int width, int height, int format, int size, Object pixels) voidgl_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) voidgl_translate(float x, float y, float z) voidgl_vertex(float x, float y, float z, float w) voidgl_viewport(int x, int y, int width, int height) float[]ModelViewTransformation(float[] ObjCoord) Public Member Functions for GLfloat[]NormalTransformation(float[] NorCoord) float[]PerspectiveDivision(float[] ClipCoord) float[]TextureTransformation(float[] TexCoord) float[]VertexTransformation(float[] EyeCoord) Methods inherited from class jgl.context.gl_object
errorCodeToString, get_rotate, get_scale, get_translate, getThrowExceptionOnGLError, gl_error, gl_eval_coord_1, gl_eval_coord_2, gl_eval_mesh_1, gl_eval_mesh_2, setThrowExceptionOnGLError
-
Field Details
-
ModelViewMatrix
public float[] ModelViewMatrixGL_MODELVIEW_MATRIX: Modelview matrix stack -
ModelViewInv
public float[] ModelViewInv -
ModelViewInvValid
public boolean ModelViewInvValid -
ModelViewStack
GL_MODELVIEW_STACK_DEPTH: Modelview matrix stack pointer -
ProjectionMatrix
public float[] ProjectionMatrixGL_PROJECTION_MATRIX: Projection matrix stack -
ProjectionStack
GL_PROJECTION_STACK_DEPTH: Projection matrix stack pointer -
TextureMatrix
public float[] TextureMatrixGL_TEXTURE_MATRIX: Texture matrix stack -
IdentityTexMat
public boolean IdentityTexMat -
TextureStack
GL_TEXTURE_STACK_DEPTH: Texture matrix stack pointer -
Current
All other classes for state variables -
Transform
-
Viewport
-
Lighting
-
Raster
-
Texture
-
ColorBuffer
-
DepthBuffer
-
StencilBuffer
-
Pixel
-
Select
All other classes for capabilities -
Feedback
-
AttribStack
Attrib stack -
CR
Current pointer to clipping, geometry, rendering classes -
EyeCoord
public float[] EyeCoordThe eye coord of Current.Vertex and Current.Normal -
EyeNormal
public float[] EyeNormal -
ListBase
public int ListBaseGL_LIST_BASE: Setting of glListBase () -
ListIndex
public int ListIndexGL_LIST_INDEX: Number of display list under construction -
ListMode
public int ListModeGL_LIST_MODE: Mode of display list under construction -
ListGroup
the vector of display list group -
TexList
the vector of texture list -
MAX_LIGHTS
public static final int MAX_LIGHTSConstant 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_colorin classgl_object
-
gl_clear_depth_buffer
public void gl_clear_depth_buffer()- Specified by:
gl_clear_depth_bufferin classgl_object
-
gl_clear_color_buffer
public void gl_clear_color_buffer()- Specified by:
gl_clear_color_bufferin classgl_object
-
gl_clear_stencil_buffer
public void gl_clear_stencil_buffer()- Specified by:
gl_clear_stencil_bufferin classgl_object
-
gl_color_mask
public void gl_color_mask(boolean red, boolean green, boolean blue, boolean alpha) - Specified by:
gl_color_maskin classgl_object
-
gl_blend_func
public void gl_blend_func(int sfactor, int dfactor) - Specified by:
gl_blend_funcin classgl_object
-
gl_cull_face
public void gl_cull_face(int mode) - Specified by:
gl_cull_facein classgl_object
-
gl_front_face
public void gl_front_face(int mode) - Specified by:
gl_front_facein classgl_object
-
gl_point_size
public void gl_point_size(float size) - Specified by:
gl_point_sizein classgl_object
-
gl_line_width
public void gl_line_width(float width) - Specified by:
gl_line_widthin classgl_object
-
gl_line_stipple
public void gl_line_stipple(int factor, short pattern) - Specified by:
gl_line_stipplein classgl_object
-
gl_polygon_mode
public void gl_polygon_mode(int face, int mode) - Specified by:
gl_polygon_modein classgl_object
-
gl_polygon_stipple
public void gl_polygon_stipple(byte[] mask) - Specified by:
gl_polygon_stipplein classgl_object
-
gl_clip_plane
public void gl_clip_plane(int plane, float[] eq) - Specified by:
gl_clip_planein classgl_object
-
gl_get_clip_plane
public float[] gl_get_clip_plane(int plane) - Specified by:
gl_get_clip_planein classgl_object
-
gl_enable
public void gl_enable(int cap, boolean state) -
gl_is_enabled
public boolean gl_is_enabled(int cap) - Specified by:
gl_is_enabledin classgl_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_modein classgl_object
-
gl_clear_depth
public void gl_clear_depth(float depth) - Specified by:
gl_clear_depthin classgl_object
-
gl_depth_func
public void gl_depth_func(int func) - Specified by:
gl_depth_funcin classgl_object
-
gl_depth_mask
public void gl_depth_mask(boolean flag) - Specified by:
gl_depth_maskin classgl_object
-
gl_depth_range
public void gl_depth_range(float n, float f) - Specified by:
gl_depth_rangein classgl_object
-
gl_matrix_mode
public void gl_matrix_mode(int mode) - Specified by:
gl_matrix_modein classgl_object
-
gl_mult_matrix
public void gl_mult_matrix(float[] m) - Specified by:
gl_mult_matrixin classgl_object
-
gl_viewport
public void gl_viewport(int x, int y, int width, int height) - Specified by:
gl_viewportin classgl_object
-
gl_push_matrix
public void gl_push_matrix()- Specified by:
gl_push_matrixin classgl_object
-
gl_pop_matrix
public void gl_pop_matrix()- Specified by:
gl_pop_matrixin classgl_object
-
gl_load_identity_matrix
public void gl_load_identity_matrix()- Specified by:
gl_load_identity_matrixin classgl_object
-
gl_load_matrix
public void gl_load_matrix(float[] m) - Specified by:
gl_load_matrixin classgl_object
-
gl_rotate
public void gl_rotate(float angle, float x, float y, float z) -
gl_scale
public void gl_scale(float x, float y, float z) -
gl_translate
public void gl_translate(float x, float y, float z) - Specified by:
gl_translatein classgl_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
-
gl_call_list
public void gl_call_list(int list) - Specified by:
gl_call_listin classgl_object
-
gl_call_offset
public void gl_call_offset(int offset) - Specified by:
gl_call_offsetin classgl_object
-
gl_list_base
public void gl_list_base(int base) - Specified by:
gl_list_basein classgl_object
-
gl_begin
public void gl_begin(int mode) -
gl_end
public void gl_end() -
gl_vertex
public void gl_vertex(float x, float y, float z, float w) -
gl_normal
public void gl_normal(float x, float y, float z) -
gl_index
public void gl_index(int c) -
gl_color
public void gl_color(float red, float green, float blue, float alpha) -
gl_tex_coord
public void gl_tex_coord(float s, float t, float r, float q) - Specified by:
gl_tex_coordin classgl_object
-
gl_raster_pos
public void gl_raster_pos(float x, float y, float z, float w) - Specified by:
gl_raster_posin classgl_object
-
gl_shade_model
public void gl_shade_model(int mode) - Specified by:
gl_shade_modelin classgl_object
-
gl_light
public void gl_light(int light, int pname, float[] params) -
gl_get_light
public float[] gl_get_light(int light, int pname) - Specified by:
gl_get_lightin classgl_object
-
gl_light_model
public void gl_light_model(int pname, float[] params) - Specified by:
gl_light_modelin classgl_object
-
gl_material
public void gl_material(int face, int pname, float[] params) - Specified by:
gl_materialin classgl_object
-
gl_get_material
public float[] gl_get_material(int face, int pname) - Specified by:
gl_get_materialin classgl_object
-
gl_color_material
public void gl_color_material(int face, int mode) - Specified by:
gl_color_materialin classgl_object
-
gl_pixel_store
public void gl_pixel_store(int pname, int param) - Specified by:
gl_pixel_storein classgl_object
-
gl_pixel_transfer
public void gl_pixel_transfer(int pname, float param) - Specified by:
gl_pixel_transferin classgl_object
-
gl_read_index_pixels
- Specified by:
gl_read_index_pixelsin classgl_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_pixelsin classgl_object
-
gl_read_stencil_pixels
- Specified by:
gl_read_stencil_pixelsin classgl_object
-
gl_read_depth_pixels
- Specified by:
gl_read_depth_pixelsin classgl_object
-
gl_draw_index_pixels
- Specified by:
gl_draw_index_pixelsin classgl_object
-
gl_draw_color_pixels
- Specified by:
gl_draw_color_pixelsin classgl_object
-
gl_draw_stencil_pixels
- Specified by:
gl_draw_stencil_pixelsin classgl_object
-
gl_draw_depth_pixels
- Specified by:
gl_draw_depth_pixelsin classgl_object
-
gl_copy_color_pixels
public void gl_copy_color_pixels(int x, int y, int width, int height) - Specified by:
gl_copy_color_pixelsin classgl_object
-
gl_copy_stencil_pixels
public void gl_copy_stencil_pixels(int x, int y, int width, int height) - Specified by:
gl_copy_stencil_pixelsin classgl_object
-
gl_copy_depth_pixels
public void gl_copy_depth_pixels(int x, int y, int width, int height) - Specified by:
gl_copy_depth_pixelsin classgl_object
-
gl_stencil_func
public void gl_stencil_func(int func, int ref, int mask) - Specified by:
gl_stencil_funcin classgl_object
-
gl_stencil_mask
public void gl_stencil_mask(int mask) - Specified by:
gl_stencil_maskin classgl_object
-
gl_stencil_op
public void gl_stencil_op(int fail, int zfail, int zpass) - Specified by:
gl_stencil_opin classgl_object
-
gl_clear_stencil
public void gl_clear_stencil(int s) - Specified by:
gl_clear_stencilin classgl_object
-
gl_tex_gen_i
public void gl_tex_gen_i(int coord, int param) - Specified by:
gl_tex_gen_iin classgl_object
-
gl_tex_gen_f
public void gl_tex_gen_f(int coord, int pname, float[] params) - Specified by:
gl_tex_gen_fin classgl_object
-
gl_tex_env_i
public void gl_tex_env_i(int param) - Specified by:
gl_tex_env_iin classgl_object
-
gl_tex_env_f
public void gl_tex_env_f(float[] params) - Specified by:
gl_tex_env_fin classgl_object
-
gl_tex_parameter
public void gl_tex_parameter(int target, int pname, float[] params) - Specified by:
gl_tex_parameterin classgl_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_1din classgl_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_2din classgl_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_3din classgl_object
-
gl_get_tex_image
-
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_texturein classgl_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_1din classgl_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_2din classgl_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_3din classgl_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_bufferin classgl_object
-
gl_pass_through
public void gl_pass_through(float token) - Specified by:
gl_pass_throughin classgl_object
-
gl_select_buffer
public void gl_select_buffer(int size, int[] buffer) - Specified by:
gl_select_bufferin classgl_object
-
gl_init_names
public void gl_init_names()- Specified by:
gl_init_namesin classgl_object
-
gl_load_name
public void gl_load_name(int name) - Specified by:
gl_load_namein classgl_object
-
gl_push_name
public void gl_push_name(int name) - Specified by:
gl_push_namein classgl_object
-
gl_pop_name
public void gl_pop_name()- Specified by:
gl_pop_namein classgl_object
-