feat(renderer): add withVisibleArea method for clipping area in RenderingBo interface
This commit is contained in:
@@ -117,6 +117,11 @@ public interface RenderingBo extends AutoCloseable {
|
||||
*/
|
||||
RenderingBo withPositionRelative(HasPosition2 position);
|
||||
|
||||
/**
|
||||
* Sets a visible area (clipping area) for this rendering bo. Coordinates are absolute viewport coordinates.
|
||||
*/
|
||||
RenderingBo withVisibleArea(int x, int y, int width, int height);
|
||||
|
||||
void apply(RenderingBo other);
|
||||
|
||||
void staticCleanupAfterFrame();
|
||||
|
||||
@@ -26,6 +26,5 @@ public interface RenderingBoHasDimension extends RenderingBo {
|
||||
RenderingBoHasDimension withDimensionIncrementalAbsolute(int width, int height);
|
||||
|
||||
RenderingBoHasDimension withDimensionIncrementalPercentual(double width, double height);
|
||||
|
||||
RenderingBoHasDimension withVisibleArea(int x, int y, int width, int height);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user