Class gl_stencilbuffer


  • public class gl_stencilbuffer
    extends Object
    gl_stencilbuffer is the stenciling buffer class of jGL 2.4.
    Version:
    0.1, 19 Jun 2001
    Author:
    Robin Bing-Yu Chen
    • Field Detail

      • Enable

        public boolean Enable
        GL_STENCIL_TEST: Stenciling buffer enabled
      • Func

        public int Func
        GL_STENCIL_FUNC: Stencil function
      • ValueMask

        public int ValueMask
        GL_STENCIL_VALUE_MASK: Stencil mask
      • Ref

        public int Ref
        GL_STENCIL_REF: Stencil reference value
      • Fail

        public int Fail
        GL_STENCIL_FAIL: Stencil fail action
      • ZFail

        public int ZFail
        GL_STENCIL_PASS_DEPTH_FAIL: Stencil depth buffer fail action
      • ZPass

        public int ZPass
        GL_STENCIL_PASS_DEPTH_PASS: Stencil depth buffer pass action
      • Mask

        public int Mask
        GL_STENCIL_WRITEMASK: Stencil-buffer writing
      • Clear

        public int Clear
        GL_STENCIL_CLEAR_VALUE: Stencil-buffer clear value
      • Buffer

        public int[] Buffer
    • Constructor Detail

      • gl_stencilbuffer

        public gl_stencilbuffer​(gl_context cc)
    • Method Detail

      • 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 size,
                                Object pixels)
      • draw_pixels

        public void draw_pixels​(int width,
                                int height,
                                int size,
                                Object pixels)
      • copy_pixels

        public void copy_pixels​(int x,
                                int y,
                                int width,
                                int height)