Package jgl.context.clipping
Class gl_2d_clipping
java.lang.Object
jgl.context.clipping.gl_clipping
jgl.context.clipping.gl_2d_clipping
gl_2d_clipping is the clipping class for frame buffer of JavaGL 2.1.
- Version:
- 0.4, 3 Dev 1999
- Author:
- Robin Bing-Yu Chen
-
Field Summary
Fields inherited from class jgl.context.clipping.gl_clipping
CC, t
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclip_polygon
(gl_polygon inlist) protected gl_vertex
inter_point_neg
(gl_vertex v1, gl_vertex v2, int xy) protected gl_vertex
inter_point_pos
(gl_vertex v1, gl_vertex v2, int xy) boolean
IsInside
(float[] p) protected boolean
IsInside_neg
(float[] p, int xy) protected boolean
IsInside_pos
(float[] p, int xy) Methods inherited from class jgl.context.clipping.gl_clipping
clip_line, clip_line, clip_polygon, clip_polygon, inter_color, inter_point, inter_tex, IsInside
-
Constructor Details
-
gl_2d_clipping
public gl_2d_clipping(int w, int h)
-
-
Method Details
-
inter_point_pos
- Overrides:
inter_point_pos
in classgl_clipping
-
inter_point_neg
- Overrides:
inter_point_neg
in classgl_clipping
-
IsInside_pos
protected boolean IsInside_pos(float[] p, int xy) - Overrides:
IsInside_pos
in classgl_clipping
-
IsInside_neg
protected boolean IsInside_neg(float[] p, int xy) - Overrides:
IsInside_neg
in classgl_clipping
-
IsInside
public boolean IsInside(float[] p) - Overrides:
IsInside
in classgl_clipping
-
clip_line
- Overrides:
clip_line
in classgl_clipping
-
clip_polygon
- Overrides:
clip_polygon
in classgl_clipping
-