|Note: This feature is for ZScript only.|
native static void SetClipRect(int x, int y, int w, int h)
Sets a clipping rectangle on the screen. Clipping rectangles prevent anything outside of the specified bounding box from being drawn. This can be used to clip the edges of graphics if they leave a specific area. Note that this will only clip things that are drawn on the screen after the clipping rectangle is specified. Anything drawn before it's set, even if they lie outside of the rectangle, will not be clipped. Coordinates are absolute and start from the top left of the screen with positive x values shifting to the right and positive y values shifting downward.
- x - The x offset of the clipping rectangle
- y - The y offset of the clipping rectangle
- w - The width of the clipping rectangle
- h - The height of the clipping rectangle
|Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please. This will make it easier to understand for future authors seeking assistance. Your contributions are greatly appreciated.|