Package jgl.context.attrib
Class gl_stencilbuffer
- java.lang.Object
-
- jgl.context.attrib.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 Summary
Fields Modifier and Type Field Description int[]
Buffer
int
Clear
GL_STENCIL_CLEAR_VALUE: Stencil-buffer clear valueboolean
Enable
GL_STENCIL_TEST: Stenciling buffer enabledint
Fail
GL_STENCIL_FAIL: Stencil fail actionint
Func
GL_STENCIL_FUNC: Stencil functionint
Mask
GL_STENCIL_WRITEMASK: Stencil-buffer writingint
Ref
GL_STENCIL_REF: Stencil reference valueint
ValueMask
GL_STENCIL_VALUE_MASK: Stencil maskint
ZFail
GL_STENCIL_PASS_DEPTH_FAIL: Stencil depth buffer fail actionint
ZPass
GL_STENCIL_PASS_DEPTH_PASS: Stencil depth buffer pass action
-
Constructor Summary
Constructors Constructor Description gl_stencilbuffer(gl_stencilbuffer cc)
gl_stencilbuffer(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 size, Object pixels)
void
read_pixels(int x, int y, int width, int height, int size, Object pixels)
void
set_buffer(int size)
-
-
-
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_stencilbuffer cc)
-
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)
-
-