Flips the sprite either horizontally or vertically, (or both).
procedure SetFlip(const Horz: Boolean; const Vert: Boolean);
Parameters |
Description |
const Horz: Boolean |
set to True to flip the sprite horizontally left to right. |
const Vert: Boolean |
set to True to flip the sprite vertically top to bottom. |
This merely modifies the UV coordinates so that the sprite appears flipped, it does not adjust position or angle values. Note that flipping in both horizontal and vertical directions at the same time gives the appearance of rotation by 180 degrees.
Copyright (c) 2012. All rights reserved.
|