![]() |
Dauphine
0.1
A platforming/stealth game in a medieval fantasy setting, developed with SDL2.
|
Simple collision detection. More...
#include <Collision.h>
Public Types | |
| enum | RectangleSide : uint8_t { TOP = 0, BOTTOM, LEFT, RIGHT, NONE } |
| Possible sides a rectangle can collide. | |
Static Public Member Functions | |
| static bool | rectsCollided (const SDL_Rect &a_, const SDL_Rect &b_) |
| static RectangleSide | rectsCollidedSide (const SDL_Rect &a_, const SDL_Rect &b_) |
Simple collision detection.
|
static |
| a_,b_ | : The rectangles to check. |
|
static |
| a_,b_ | : The rectangles to check. |
1.8.4