Constructor and Description |
---|
HorizontalClip(float top,
float bottom)
Create clip displaying a horizontal row.
|
public HorizontalClip(float top, float bottom)
top
- the top of the row, value between 0 and 1, relative to the
view-port heightbottom
- the bottom of the row, value between 0 and 1, relative to
the view-port heightpublic Shape getClip(Rectangle viewportBounds, int originX, int originY, int width, int height)
Clip
getClip
in interface Clip
viewportBounds
- the view-port bounds (world pixel coordinates)originX
- the x position of the origin of the graphics to clip
(world pixel coordinates)originY
- the y position of the origin of the graphics to clip
(world pixel coordinates)width
- the graphics widthheight
- the graphics heightnull
if nothing should be paintedClip.getClip(Rectangle, int, int, int, int)
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a