hgeSprite::GetBoundingBoxEx

Returns the scaled and rotated sprite bounding box.

hgeRect *GetBoundingBoxEx(
  float x,
  float y,
  float rot,
  float hscale,
  float vscale,
  hgeRect *rect
);

Parameters

x
On-screen x-coordinate of the sprite.
y
On-screen y-coordinate of the sprite.
rot
Sprite rotation in radians.
hscale
Horizontal scaling factor. 1.0 means default size.
vscale
Vertical scaling factor. 1.0 means default size.
rect
Pointer to a hgeRect object to store the sprite's bounding box to.

Return value

Returns rect parameter.

Requirements

Header: hgesprite.h
Import library: hgehelp.lib

See also

GetBoundingBox