hgeSprite::GetZ

Returns Z-order of the specified sprite vertex.

float GetZ(
  int i = 0
);

Parameters

i
Optional index of the sprite vertex. Vertices are indexed clockwise starting from top-left one in the range 0-3. If omitted, Z-order of the first vertex will be returned.

Return value

Returns Z-order of the specified sprite vertex.

Remarks

If the Z-buffer isn't used, the Z-order values are ignored.

Requirements

Header: hgesprite.h
Import library: hgehelp.lib

See also

SetZ, HGE_ZBUFFER