hgeSprite::SetTextureRect
Sets the texture region to use for the sprite.
void SetTextureRect(
float x,
float y,
float w,
float h,
bool adjSize = true
);
Parameters
- x
- The texture region top-left corner X-coordinate.
- y
- The texture region top-left corner Y-coordinate.
- w
- The texture region width.
- h
- The texture region height.
- adjSize
- If true, the sprite dimensions will be adjusted according to new texture region.
If false the sprite dimensions will remain as is. Optional.
Requirements
Header: hgesprite.h
Import library: hgehelp.lib
See also
GetTextureRect,
SetTexture,
GetTexture
|