HGE::Gfx_SetTransform

Sets global transformation for all graphics being rendered further.

void Gfx_SetTransform(
  float x = 0,
  float y = 0,
  float dx = 0,
  float dy = 0,
  float rot = 0,
  float hscale = 0,
  float vscale = 0
);

Parameters

x
Center point X-coordinate.
y
Center point Y-coordinate.
dx
Center point X displacement.
dy
Center point Y displacement.
rot
Rotation angle in radians.
hscale
Horizontal scaling factor.
vscale
Vertical scaling factor.

Remarks

Transformations are applied in this order: first scaling, then rotation and finally displacement.

If all the parameters are 0 or omitted, global transformation will be reset. When the render target is switched, global transformation is also reset.

Gfx_SetTransform flushes all accumulated graphic primitives.

Requirements

Header: hge.h
Import library: hge.lib