Package jgl.context.attrib
Class gl_colorbuffer
java.lang.Object
jgl.context.attrib.gl_colorbuffer
gl_colorbuffer is the color buffer class of jGL 2.4.
- Version:
- 0.3, 15 Mar 2001
- Author:
- Robin Bing-Yu Chen
-
Field Summary
Modifier and TypeFieldDescriptionboolean
GL_ALPHA_TEST: Alpha test enabledint
GL_ALPHA_TEST_FUNC: Alpha test functionint
GL_ALPHA_TEST_REF: Alpha test reference valueint
GL_BLEND_DST: Blending destination functionboolean
GL_BLEND: Blending enabledint
GL_BLEND_SRC: Blending source functionint[]
The really color bufferfloat[]
GL_COLOR_CLEAR_VALUE: Color-buffer clear value (RGBA mode)int
GL_INDEX_CLEAR_VALUE: Color-buffer clear value (color-index mode)int
GL_COLOR_WRITEMASK: Color write enabled; R, G, B, or Aboolean
GL_DITHER: Dithering enabledint
GL_DRAW_BUFFER: Buffers selected for drawingint
GL_INDEX_WRITEMASK: Color-index writemaskint
The clear color in int for Java formatboolean
GL_LOGIC_OP: Logical operation enabledint
GL_LOGIC_OP_MODE: Logical operation function -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear_buffer
(int size) void
copy_pixels
(int x, int y, int width, int height) void
draw_pixels
(int width, int height, int format, int size, Object pixels) void
read_pixels
(int x, int y, int width, int height, int format, int size, Object pixels) void
set_buffer
(int size) void
set_clear_color
(float r, float g, float b, float a) void
set_color_mask
(boolean r, boolean g, boolean b, boolean a)
-
Field Details
-
DrawBuffer
public int DrawBufferGL_DRAW_BUFFER: Buffers selected for drawing -
IndexMask
public int IndexMaskGL_INDEX_WRITEMASK: Color-index writemask -
ColorMask
public int ColorMaskGL_COLOR_WRITEMASK: Color write enabled; R, G, B, or A -
ClearColor
public float[] ClearColorGL_COLOR_CLEAR_VALUE: Color-buffer clear value (RGBA mode) -
IntClearColor
public int IntClearColorThe clear color in int for Java format -
ClearIndex
public int ClearIndexGL_INDEX_CLEAR_VALUE: Color-buffer clear value (color-index mode) -
AlphaEnable
public boolean AlphaEnableGL_ALPHA_TEST: Alpha test enabled -
AlphaFunc
public int AlphaFuncGL_ALPHA_TEST_FUNC: Alpha test function -
AlphaRef
public int AlphaRefGL_ALPHA_TEST_REF: Alpha test reference value -
BlendEnable
public boolean BlendEnableGL_BLEND: Blending enabled -
BlendSrc
public int BlendSrcGL_BLEND_SRC: Blending source function -
BlendDst
public int BlendDstGL_BLEND_DST: Blending destination function -
LogicOPEnable
public boolean LogicOPEnableGL_LOGIC_OP: Logical operation enabled -
LogicOPMode
public int LogicOPModeGL_LOGIC_OP_MODE: Logical operation function -
DitherEnable
public boolean DitherEnableGL_DITHER: Dithering enabled -
Buffer
public int[] BufferThe really color buffer
-
-
Constructor Details
-
gl_colorbuffer
-
gl_colorbuffer
-
-
Method Details
-
set_clear_color
public void set_clear_color(float r, float g, float b, float a) -
set_color_mask
public void set_color_mask(boolean r, boolean g, boolean b, boolean a) -
set_buffer
public void set_buffer(int size) -
clear_buffer
public void clear_buffer(int size) -
read_pixels
-
draw_pixels
-
copy_pixels
public void copy_pixels(int x, int y, int width, int height)
-