hgeSprite::GetTextureRect

Returns the current texture region used for the sprite.

void GetTextureRect(
  float *x,
  float *y,
  float *w,
  float *h
);

Parameters

x
Pointer to a float to store the current texture region top-left corner X-coordinate.
y
Pointer to a float to store the current texture region top-left corner Y-coordinate.
w
Pointer to a float to store the current texture region width.
h
Pointer to a float to store the current texture region height.

Requirements

Header: hgesprite.h
Import library: hgehelp.lib

See also

SetTextureRect, SetTexture, GetTexture