Package jgl.context.attrib
Class gl_colorbuffer
- java.lang.Object
-
- jgl.context.attrib.gl_colorbuffer
-
public class gl_colorbuffer extends Object
gl_colorbuffer is the color buffer class of jGL 2.4.- Version:
- 0.3, 15 Mar 2001
- Author:
- Robin Bing-Yu Chen
-
-
Field Summary
Fields Modifier and Type Field Description boolean
AlphaEnable
GL_ALPHA_TEST: Alpha test enabledint
AlphaFunc
GL_ALPHA_TEST_FUNC: Alpha test functionint
AlphaRef
GL_ALPHA_TEST_REF: Alpha test reference valueint
BlendDst
GL_BLEND_DST: Blending destination functionboolean
BlendEnable
GL_BLEND: Blending enabledint
BlendSrc
GL_BLEND_SRC: Blending source functionint[]
Buffer
The really color bufferfloat[]
ClearColor
GL_COLOR_CLEAR_VALUE: Color-buffer clear value (RGBA mode)int
ClearIndex
GL_INDEX_CLEAR_VALUE: Color-buffer clear value (color-index mode)int
ColorMask
GL_COLOR_WRITEMASK: Color write enabled; R, G, B, or Aboolean
DitherEnable
GL_DITHER: Dithering enabledint
DrawBuffer
GL_DRAW_BUFFER: Buffers selected for drawingint
IndexMask
GL_INDEX_WRITEMASK: Color-index writemaskint
IntClearColor
The clear color in int for Java formatboolean
LogicOPEnable
GL_LOGIC_OP: Logical operation enabledint
LogicOPMode
GL_LOGIC_OP_MODE: Logical operation function
-
Constructor Summary
Constructors Constructor Description gl_colorbuffer(gl_colorbuffer cc)
gl_colorbuffer(gl_context cc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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 Detail
-
DrawBuffer
public int DrawBuffer
GL_DRAW_BUFFER: Buffers selected for drawing
-
IndexMask
public int IndexMask
GL_INDEX_WRITEMASK: Color-index writemask
-
ColorMask
public int ColorMask
GL_COLOR_WRITEMASK: Color write enabled; R, G, B, or A
-
ClearColor
public float[] ClearColor
GL_COLOR_CLEAR_VALUE: Color-buffer clear value (RGBA mode)
-
IntClearColor
public int IntClearColor
The clear color in int for Java format
-
ClearIndex
public int ClearIndex
GL_INDEX_CLEAR_VALUE: Color-buffer clear value (color-index mode)
-
AlphaEnable
public boolean AlphaEnable
GL_ALPHA_TEST: Alpha test enabled
-
AlphaFunc
public int AlphaFunc
GL_ALPHA_TEST_FUNC: Alpha test function
-
AlphaRef
public int AlphaRef
GL_ALPHA_TEST_REF: Alpha test reference value
-
BlendEnable
public boolean BlendEnable
GL_BLEND: Blending enabled
-
BlendSrc
public int BlendSrc
GL_BLEND_SRC: Blending source function
-
BlendDst
public int BlendDst
GL_BLEND_DST: Blending destination function
-
LogicOPEnable
public boolean LogicOPEnable
GL_LOGIC_OP: Logical operation enabled
-
LogicOPMode
public int LogicOPMode
GL_LOGIC_OP_MODE: Logical operation function
-
DitherEnable
public boolean DitherEnable
GL_DITHER: Dithering enabled
-
Buffer
public int[] Buffer
The really color buffer
-
-
Constructor Detail
-
gl_colorbuffer
public gl_colorbuffer(gl_colorbuffer cc)
-
gl_colorbuffer
public gl_colorbuffer(gl_context cc)
-
-
Method Detail
-
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
public void read_pixels(int x, int y, int width, int height, int format, int size, Object pixels)
-
draw_pixels
public void draw_pixels(int width, int height, int format, int size, Object pixels)
-
copy_pixels
public void copy_pixels(int x, int y, int width, int height)
-
-