31 #ifndef CRAB_POLYGON_H 32 #define CRAB_POLYGON_H 34 #include "crab/Rectangle.h" 35 #include "crab/vectors.h" 74 void load(rapidxml::xml_node<char> *node,
Rect &bounds);
79 void offset(
const float &x,
const float &y);
92 bool contains(
const float &x,
const float &y);
95 void project(
const Vector2f &axis,
float &min,
float &max)
const;
97 void draw(
const int &xOffset = 0,
const int &yOffset = 0,
98 const uint8 &r = 0,
const uint8 &g = 0,
const uint8 &b = 0.0f,
const uint8 &a = 255);
103 #endif // CRAB_POLYGON_H
Definition: Rectangle.h:42
Definition: moveeffect.h:37