Package jgl.context
Class gl_object
java.lang.Object
jgl.context.gl_object
- Direct Known Subclasses:
gl_context
,gl_list
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 Summary
Modifier and TypeFieldDescriptionboolean
protected final boolean
If true, will notify of any OpenGL error according to the configuration ofthrowExceptionOnGLError
int
static final float[]
int
int
GL_RENDER_MODE: glRenderMode() settingprotected boolean
If true, will trigger aRuntimeException
upon any OpenGL error, otherwise send message to System.err.println(). -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringBuffer
errorCodeToString
(String prefix, int error, String suffix) protected float[]
get_rotate
(float angle, float x, float y, float z) Protected Member Functionsprotected float[]
get_scale
(float x, float y, float z) protected float[]
get_translate
(float x, float y, float z) boolean
abstract void
gl_begin
(int mode) abstract void
gl_bind_texture
(int target, int texture) abstract void
gl_blend_func
(int sfactor, int dfactor) abstract void
gl_call_list
(int list) abstract void
gl_call_offset
(int offset) abstract void
gl_clear_color
(float red, float green, float blue, float alpha) abstract void
abstract void
gl_clear_depth
(float depth) abstract void
abstract void
gl_clear_stencil
(int s) abstract void
abstract void
gl_clip_plane
(int plane, float[] equation) abstract void
gl_color
(float red, float green, float blue, float alpha) abstract void
gl_color_mask
(boolean red, boolean green, boolean blue, boolean alpha) abstract void
gl_color_material
(int face, int mode) abstract void
gl_copy_color_pixels
(int x, int y, int width, int height) abstract void
gl_copy_depth_pixels
(int x, int y, int width, int height) abstract void
gl_copy_stencil_pixels
(int x, int y, int width, int height) abstract void
gl_cull_face
(int mode) abstract void
gl_depth_func
(int func) abstract void
gl_depth_mask
(boolean flag) abstract void
gl_depth_range
(float n, float f) abstract void
gl_draw_color_pixels
(int width, int height, int format, int size, Object pixels) abstract void
gl_draw_depth_pixels
(int width, int height, int size, Object pixels) abstract void
gl_draw_index_pixels
(int width, int height, int size, Object pixels) abstract void
gl_draw_stencil_pixels
(int width, int height, int size, Object pixels) abstract void
gl_enable
(int cap, boolean state) abstract void
gl_end()
void
Public Member Functionsvoid
gl_eval_coord_1
(float u) void
gl_eval_coord_2
(float u, float v) void
gl_eval_mesh_1
(int mode, int nu1, int nu2) void
gl_eval_mesh_2
(int mode, int nu1, int nu2, int nv1, int nv2) abstract void
gl_feedback_buffer
(int size, int type, float[] buffer) abstract void
gl_front_face
(int mode) abstract float[]
gl_get_clip_plane
(int plane) abstract float[]
gl_get_light
(int light, int pname) abstract float[]
gl_get_material
(int face, int pname) abstract void
gl_index
(int c) abstract void
abstract boolean
gl_is_enabled
(int cap) abstract void
gl_light
(int light, int pname, float[] params) abstract void
gl_light_model
(int pname, float[] params) abstract void
gl_line_stipple
(int factor, short pattern) abstract void
gl_line_width
(float width) abstract void
gl_list_base
(int base) abstract void
abstract void
gl_load_matrix
(float[] m) abstract void
gl_load_name
(int name) abstract void
gl_material
(int face, int pname, float[] params) abstract void
gl_matrix_mode
(int mode) abstract void
gl_mult_matrix
(float[] m) abstract void
gl_normal
(float x, float y, float z) abstract void
gl_pass_through
(float token) abstract void
gl_pixel_store
(int pname, int param) abstract void
gl_pixel_transfer
(int pname, float param) abstract void
gl_point_size
(float size) abstract void
gl_polygon_mode
(int face, int mode) abstract void
gl_polygon_stipple
(byte[] mask) abstract void
abstract void
abstract void
abstract void
gl_push_name
(int name) abstract void
gl_raster_pos
(float x, float y, float z, float w) abstract void
gl_read_color_pixels
(int x, int y, int width, int height, int format, int size, Object pixels) abstract void
gl_read_depth_pixels
(int x, int y, int width, int height, int size, Object pixels) abstract void
gl_read_index_pixels
(int x, int y, int width, int height, int size, Object pixels) abstract void
gl_read_stencil_pixels
(int x, int y, int width, int height, int size, Object pixels) abstract int
gl_render_mode
(int mode) abstract void
gl_rotate
(float angle, float x, float y, float z) abstract void
gl_scale
(float x, float y, float z) abstract void
gl_select_buffer
(int size, int[] buffer) abstract void
gl_shade_model
(int mode) abstract void
gl_stencil_func
(int func, int ref, int mask) abstract void
gl_stencil_mask
(int mask) abstract void
gl_stencil_op
(int fail, int zfail, int zpass) abstract void
gl_tex_coord
(float s, float t, float r, float q) abstract void
gl_tex_env_f
(float[] params) abstract void
gl_tex_env_i
(int param) abstract void
gl_tex_gen_f
(int coord, int pname, float[] params) abstract void
gl_tex_gen_i
(int coord, int param) abstract void
gl_tex_image_1d
(int target, int level, int components, int width, int border, int format, int size, Object pixels) abstract void
gl_tex_image_2d
(int target, int level, int components, int width, int height, int border, int format, int size, Object pixels) 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) abstract void
gl_tex_parameter
(int target, int pname, float[] params) abstract void
gl_tex_sub_image_1d
(int target, int level, int xoffset, int width, int format, int size, Object pixels) 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) 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) abstract void
gl_translate
(float x, float y, float z) abstract void
gl_vertex
(float x, float y, float z, float w) abstract void
gl_viewport
(int x, int y, int width, int height) void
setThrowExceptionOnGLError
(boolean status)
-
Field Details
-
debug
protected final boolean debugIf true, will notify of any OpenGL error according to the configuration ofthrowExceptionOnGLError
- See Also:
-
throwExceptionOnGLError
protected boolean throwExceptionOnGLErrorIf true, will trigger aRuntimeException
upon any OpenGL error, otherwise send message to System.err.println(). In casedebug
is set to false, all OpenGL errors are muted. -
IDENTITY
public static final float[] IDENTITY -
RenderMode
public int RenderModeGL_RENDER_MODE: glRenderMode() setting -
Mode
public int Mode -
DBflag
public boolean DBflag -
ErrorValue
public int ErrorValue -
Eval
-
-
Constructor Details
-
gl_object
public gl_object()
-
-
Method Details
-
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 Member Functions -
errorCodeToString
-
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
-
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
-
gl_draw_depth_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()
-