HGE::Gfx_SetClipping

Sets clipping region for all graphics being rendered further.

void Gfx_SetClipping(
  int x = 0,
  int y = 0,
  int w = 0,
  int h = 0
);

Parameters

x
The clipping region top-left point X-coordinate.
y
The clipping region top-left point Y-coordinate.
w
The clipping region width.
h
The clipping region height.

Remarks

If all the parameters are 0 or omitted, the clipping region will be reset to the whole render target. When the render target is switched, the clipping region is also reset to the whole render target.

Gfx_SetClipping flushes all accumulated graphic primitives.

Requirements

Header: hge.h
Import library: hge.lib