supertux
|
An axis-aligned triangle (ie. More...
#include <aatriangle.hpp>
Public Types | |
enum | Direction { SOUTHWEST = 0, NORTHEAST, SOUTHEAST, NORTHWEST, DIRECTION_MASK = 0x0003, DEFORM_BOTTOM = 0x0010, DEFORM_TOP = 0x0020, DEFORM_LEFT = 0x0030, DEFORM_RIGHT = 0x0040, DEFORM_MASK = 0x0070 } |
Directions: More... | |
Public Member Functions | |
AATriangle (const Rectf &newbbox, int newdir) | |
Static Public Member Functions | |
static int | vertical_flip (int dir) |
Public Attributes | |
Rectf | bbox |
int | dir |
An axis-aligned triangle (ie.
a triangle where 2 sides are parallel to the x- and y-axis.
Directions:
SOUTHEWEST NORTHEAST SOUTHEAST NORTHWEST
Deform flags: (see docs/aatriangletypes.png for details)