Class 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 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_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)