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
Modifier and TypeFieldDescriptionAttrib stackCurrent pointer to clipping, geometry, rendering classesAll other classes for state variablesfloat[]
The eye coord of Current.Vertex and Current.Normalfloat[]
boolean
static final float
int
GL_LIST_BASE: Setting of glListBase ()the vector of display list groupint
GL_LIST_INDEX: Number of display list under constructionint
GL_LIST_MODE: Mode of display list under constructionstatic final int
static final int
static final int
static final int
static final int
Constant of Context of JavaGLstatic final float
static final int
static final float
static final int
static final int
static final float
static final float
float[]
boolean
float[]
GL_MODELVIEW_MATRIX: Modelview matrix stackStack<float[]>
GL_MODELVIEW_STACK_DEPTH: Modelview matrix stack pointerstatic final float
float[]
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
-
Method Summary
Modifier and TypeMethodDescriptionint
void
gl_begin
(int mode) void
gl_bind_texture
(int target, int texture) void
gl_blend_func
(int sfactor, int dfactor) void
gl_call_list
(int list) void
gl_call_offset
(int offset) void
gl_clear_color
(float r, float g, float b, float a) void
void
gl_clear_depth
(float depth) void
void
gl_clear_stencil
(int s) void
void
gl_clip_plane
(int plane, float[] eq) void
gl_color
(float red, float green, float blue, float alpha) void
gl_color_mask
(boolean red, boolean green, boolean blue, boolean alpha) void
gl_color_material
(int face, int mode) void
gl_copy_color_pixels
(int x, int y, int width, int height) void
gl_copy_depth_pixels
(int x, int y, int width, int height) void
gl_copy_stencil_pixels
(int x, int y, int width, int height) void
gl_cull_face
(int mode) void
gl_delete_lists
(int list, int range) void
gl_delete_textures
(int n, int[] textures) void
gl_depth_func
(int func) void
gl_depth_mask
(boolean flag) void
gl_depth_range
(float n, float f) void
gl_draw_color_pixels
(int width, int height, int format, int size, Object pixels) void
gl_draw_depth_pixels
(int width, int height, int size, Object pixels) void
gl_draw_index_pixels
(int width, int height, int size, Object pixels) void
gl_draw_stencil_pixels
(int width, int height, int size, Object pixels) void
gl_enable
(int cap, boolean state) void
gl_end()
void
gl_end_list
(gl_list CC) void
gl_eval_point_1
(int i) void
gl_eval_point_2
(int i, int j) void
gl_feedback_buffer
(int size, int type, float[] buffer) void
gl_front_face
(int mode) int
gl_gen_lists
(int range) void
gl_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) void
gl_get_tex_image
(int target, int level, int format, int size, Object pixels) void
gl_index
(int c) void
void
void
gl_initialize_context
(int w, int h) boolean
gl_is_enabled
(int cap) boolean
gl_is_list
(int list) boolean
gl_is_texture
(int texture) void
gl_light
(int light, int pname, float[] params) void
gl_light_model
(int pname, float[] params) void
gl_line_stipple
(int factor, short pattern) void
gl_line_width
(float width) void
gl_list_base
(int base) void
void
gl_load_matrix
(float[] m) void
gl_load_name
(int name) int
gl_map_1
(int target, float u1, float u2, int stride, int order, float[][] points) int
gl_map_2
(int target, float u1, float u2, int ustride, int uorder, float v1, float v2, int vstride, int vorder, float[][][] points) void
gl_map_grid_1
(int un, float u1, float u2) void
gl_map_grid_2
(int un, float u1, float u2, int vn, float v1, float v2) void
gl_material
(int face, int pname, float[] params) void
gl_matrix_mode
(int mode) void
gl_mult_matrix
(float[] m) void
gl_new_list
(int list) void
gl_normal
(float x, float y, float z) void
gl_pass_through
(float token) void
gl_pixel_store
(int pname, int param) void
gl_pixel_transfer
(int pname, float param) void
gl_point_size
(float size) void
gl_polygon_mode
(int face, int mode) void
gl_polygon_stipple
(byte[] mask) void
void
void
void
gl_push_attrib
(int mask) void
void
gl_push_name
(int name) void
gl_raster_pos
(float x, float y, float z, float w) void
gl_read_color_pixels
(int x, int y, int width, int height, int format, int size, Object pixels) void
gl_read_depth_pixels
(int x, int y, int width, int height, int size, Object pixels) void
gl_read_index_pixels
(int x, int y, int width, int height, int size, Object pixels) void
gl_read_stencil_pixels
(int x, int y, int width, int height, int size, Object pixels) int
gl_render_mode
(int mode) void
gl_rotate
(float angle, float x, float y, float z) void
gl_scale
(float x, float y, float z) void
gl_select_buffer
(int size, int[] buffer) void
gl_shade_model
(int mode) void
gl_stencil_func
(int func, int ref, int mask) void
gl_stencil_mask
(int mask) void
gl_stencil_op
(int fail, int zfail, int zpass) void
gl_tex_coord
(float s, float t, float r, float q) void
gl_tex_env_f
(float[] params) void
gl_tex_env_i
(int param) void
gl_tex_gen_f
(int coord, int pname, float[] params) void
gl_tex_gen_i
(int coord, int param) void
gl_tex_image_1d
(int target, int level, int components, int width, int border, int format, int size, Object pixels) void
gl_tex_image_2d
(int target, int level, int components, int width, int height, int border, int format, int size, Object pixels) 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) void
gl_tex_parameter
(int target, int pname, float[] params) void
gl_tex_sub_image_1d
(int target, int level, int xoffset, int width, int format, int size, Object pixels) void
gl_tex_sub_image_2d
(int target, int level, int xoffset, int yoffset, int width, int height, int format, int size, Object pixels) 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) void
gl_translate
(float x, float y, float z) void
gl_vertex
(float x, float y, float z, float w) void
gl_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_color
in classgl_object
-
gl_clear_depth_buffer
public void gl_clear_depth_buffer()- Specified by:
gl_clear_depth_buffer
in classgl_object
-
gl_clear_color_buffer
public void gl_clear_color_buffer()- Specified by:
gl_clear_color_buffer
in classgl_object
-
gl_clear_stencil_buffer
public void gl_clear_stencil_buffer()- Specified by:
gl_clear_stencil_buffer
in classgl_object
-
gl_color_mask
public void gl_color_mask(boolean red, boolean green, boolean blue, boolean alpha) - Specified by:
gl_color_mask
in classgl_object
-
gl_blend_func
public void gl_blend_func(int sfactor, int dfactor) - Specified by:
gl_blend_func
in classgl_object
-
gl_cull_face
public void gl_cull_face(int mode) - Specified by:
gl_cull_face
in classgl_object
-
gl_front_face
public void gl_front_face(int mode) - Specified by:
gl_front_face
in classgl_object
-
gl_point_size
public void gl_point_size(float size) - Specified by:
gl_point_size
in classgl_object
-
gl_line_width
public void gl_line_width(float width) - Specified by:
gl_line_width
in classgl_object
-
gl_line_stipple
public void gl_line_stipple(int factor, short pattern) - Specified by:
gl_line_stipple
in classgl_object
-
gl_polygon_mode
public void gl_polygon_mode(int face, int mode) - Specified by:
gl_polygon_mode
in classgl_object
-
gl_polygon_stipple
public void gl_polygon_stipple(byte[] mask) - Specified by:
gl_polygon_stipple
in classgl_object
-
gl_clip_plane
public void gl_clip_plane(int plane, float[] eq) - Specified by:
gl_clip_plane
in classgl_object
-
gl_get_clip_plane
public float[] gl_get_clip_plane(int plane) - Specified by:
gl_get_clip_plane
in 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_enabled
in 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_mode
in classgl_object
-
gl_clear_depth
public void gl_clear_depth(float depth) - Specified by:
gl_clear_depth
in classgl_object
-
gl_depth_func
public void gl_depth_func(int func) - Specified by:
gl_depth_func
in classgl_object
-
gl_depth_mask
public void gl_depth_mask(boolean flag) - Specified by:
gl_depth_mask
in classgl_object
-
gl_depth_range
public void gl_depth_range(float n, float f) - Specified by:
gl_depth_range
in classgl_object
-
gl_matrix_mode
public void gl_matrix_mode(int mode) - Specified by:
gl_matrix_mode
in classgl_object
-
gl_mult_matrix
public void gl_mult_matrix(float[] m) - Specified by:
gl_mult_matrix
in classgl_object
-
gl_viewport
public void gl_viewport(int x, int y, int width, int height) - Specified by:
gl_viewport
in classgl_object
-
gl_push_matrix
public void gl_push_matrix()- Specified by:
gl_push_matrix
in classgl_object
-
gl_pop_matrix
public void gl_pop_matrix()- Specified by:
gl_pop_matrix
in classgl_object
-
gl_load_identity_matrix
public void gl_load_identity_matrix()- Specified by:
gl_load_identity_matrix
in classgl_object
-
gl_load_matrix
public void gl_load_matrix(float[] m) - Specified by:
gl_load_matrix
in 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_translate
in 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_list
in classgl_object
-
gl_call_offset
public void gl_call_offset(int offset) - Specified by:
gl_call_offset
in classgl_object
-
gl_list_base
public void gl_list_base(int base) - Specified by:
gl_list_base
in 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_coord
in classgl_object
-
gl_raster_pos
public void gl_raster_pos(float x, float y, float z, float w) - Specified by:
gl_raster_pos
in classgl_object
-
gl_shade_model
public void gl_shade_model(int mode) - Specified by:
gl_shade_model
in 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_light
in classgl_object
-
gl_light_model
public void gl_light_model(int pname, float[] params) - Specified by:
gl_light_model
in classgl_object
-
gl_material
public void gl_material(int face, int pname, float[] params) - Specified by:
gl_material
in classgl_object
-
gl_get_material
public float[] gl_get_material(int face, int pname) - Specified by:
gl_get_material
in classgl_object
-
gl_color_material
public void gl_color_material(int face, int mode) - Specified by:
gl_color_material
in classgl_object
-
gl_pixel_store
public void gl_pixel_store(int pname, int param) - Specified by:
gl_pixel_store
in classgl_object
-
gl_pixel_transfer
public void gl_pixel_transfer(int pname, float param) - Specified by:
gl_pixel_transfer
in classgl_object
-
gl_read_index_pixels
- Specified by:
gl_read_index_pixels
in 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_pixels
in classgl_object
-
gl_read_stencil_pixels
- Specified by:
gl_read_stencil_pixels
in classgl_object
-
gl_read_depth_pixels
- Specified by:
gl_read_depth_pixels
in classgl_object
-
gl_draw_index_pixels
- Specified by:
gl_draw_index_pixels
in classgl_object
-
gl_draw_color_pixels
- Specified by:
gl_draw_color_pixels
in classgl_object
-
gl_draw_stencil_pixels
- Specified by:
gl_draw_stencil_pixels
in classgl_object
-
gl_draw_depth_pixels
- Specified by:
gl_draw_depth_pixels
in 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_pixels
in 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_pixels
in 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_pixels
in classgl_object
-
gl_stencil_func
public void gl_stencil_func(int func, int ref, int mask) - Specified by:
gl_stencil_func
in classgl_object
-
gl_stencil_mask
public void gl_stencil_mask(int mask) - Specified by:
gl_stencil_mask
in classgl_object
-
gl_stencil_op
public void gl_stencil_op(int fail, int zfail, int zpass) - Specified by:
gl_stencil_op
in classgl_object
-
gl_clear_stencil
public void gl_clear_stencil(int s) - Specified by:
gl_clear_stencil
in classgl_object
-
gl_tex_gen_i
public void gl_tex_gen_i(int coord, int param) - Specified by:
gl_tex_gen_i
in classgl_object
-
gl_tex_gen_f
public void gl_tex_gen_f(int coord, int pname, float[] params) - Specified by:
gl_tex_gen_f
in classgl_object
-
gl_tex_env_i
public void gl_tex_env_i(int param) - Specified by:
gl_tex_env_i
in classgl_object
-
gl_tex_env_f
public void gl_tex_env_f(float[] params) - Specified by:
gl_tex_env_f
in classgl_object
-
gl_tex_parameter
public void gl_tex_parameter(int target, int pname, float[] params) - Specified by:
gl_tex_parameter
in 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_1d
in 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_2d
in 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_3d
in 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_texture
in 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_1d
in 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_2d
in 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_3d
in 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_buffer
in classgl_object
-
gl_pass_through
public void gl_pass_through(float token) - Specified by:
gl_pass_through
in classgl_object
-
gl_select_buffer
public void gl_select_buffer(int size, int[] buffer) - Specified by:
gl_select_buffer
in classgl_object
-
gl_init_names
public void gl_init_names()- Specified by:
gl_init_names
in classgl_object
-
gl_load_name
public void gl_load_name(int name) - Specified by:
gl_load_name
in classgl_object
-
gl_push_name
public void gl_push_name(int name) - Specified by:
gl_push_name
in classgl_object
-
gl_pop_name
public void gl_pop_name()- Specified by:
gl_pop_name
in classgl_object
-