hgeSprite::GetBoundingBox
Returns the sprite bounding box.
hgeRect *GetBoundingBox(
float x,
float y,
hgeRect *rect
);
Parameters
- x
- On-screen x-coordinate of the sprite.
- y
- On-screen y-coordinate of the sprite.
- rect
- Pointer to a hgeRect
object to store the sprite's bounding box to.
Return value
Returns rect parameter.
Remarks
The bounding box calculation takes into consideration
the sprite's anchor point. See the
SetHotSpot
method for details.
Requirements
Header: hgesprite.h
Import library: hgehelp.lib
See also
GetBoundingBoxEx
|