hgeSprite::SetZ

Sets Z-order for the specified vertex or the entire sprite.

void SetZ(
  float z,
  int i = -1
);

Parameters

z
Z-order in range from 0.0 to 1.0.
i
Optional index of the vertex to be changed. Vertices are indexed clockwise starting from top-left one in the range 0-3. If =-1 or omitted, all four vertices will be changed.

Remarks

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

Requirements

Header: hgesprite.h
Import library: hgehelp.lib

See also

GetZ, HGE_ZBUFFER