supertux
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
AATriangle Class Referencefinal

An axis-aligned triangle (ie. More...

#include <aatriangle.hpp>

Collaboration diagram for AATriangle:
Collaboration graph
[legend]

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
 

Detailed Description

An axis-aligned triangle (ie.

a triangle where 2 sides are parallel to the x- and y-axis.

Member Enumeration Documentation

◆ Direction

Directions:

SOUTHEWEST NORTHEAST SOUTHEAST NORTHWEST

  • or *—* or * or *—* | \ \ | / | | / | \ \ | / | | / *—* * *—* *

Deform flags: (see docs/aatriangletypes.png for details)


The documentation for this class was generated from the following files: