hgeSprite::RenderEx
Renders the sprite to the screen with scaling and rotation.
void RenderEx(
float x,
float y,
float rot,
float hscale = 1.0f,
float vscale = 0.0f
);
Parameters
- x
- Screen x-coordinate to render the sprite at.
- y
- Screen y-coordinate to render the sprite at.
- rot
- Sprite rotation in radians.
- hscale
- Horizontal scaling factor. 1.0 means default size. If omitted, no scaling will be applied.
- vscale
- Vertical scaling factor. 1.0 means default size. If = 0.0 or omitted, hscale is used for both horizontal and vertical scaling.
Remarks
The scaling, rotation and position operations are all
calculated relatively to the sprite's anchor point. See the
SetHotSpot
method description for details.
Requirements
Header: hgesprite.h
Import library: hgehelp.lib
See also
Render,
RenderStretch,
Render4V
|