| hx3d
    1
    2D/3D Simple Game Framework | 
Collision matrix with masks and category. More...
#include <collision_matrix.hpp>
| Public Member Functions | |
| void | addCategory (std::string name) | 
| Add a category.  More... | |
| template<class... Categories> | |
| void | addMask (std::string name, std::string category, Categories...others) | 
| Add a mask for a category from multiple categories.  More... | |
| unsigned int | getCategory (std::string category) | 
| Get a category bit from a name.  More... | |
| unsigned int | getMask (std::string category) | 
| Get a mask bit from a name.  More... | |
Collision matrix with masks and category.
Definition at line 33 of file collision_matrix.hpp.
| void hx3d::physics2d::CollisionMatrix::addCategory | ( | std::string | name | ) | 
| void hx3d::physics2d::CollisionMatrix::addMask | ( | std::string | name, | 
| std::string | category, | ||
| Categories... | others | ||
| ) | 
Add a mask for a category from multiple categories.
| name | Category name | 
| category | First category | 
| others | Other categories | 
Definition at line 23 of file collision_matrix.hpp.
| unsigned int hx3d::physics2d::CollisionMatrix::getCategory | ( | std::string | category | ) | 
Get a category bit from a name.
| category | Category name | 
Definition at line 66 of file collision_matrix.cpp.
| unsigned int hx3d::physics2d::CollisionMatrix::getMask | ( | std::string | category | ) | 
Get a mask bit from a name.
| category | Category name | 
Definition at line 75 of file collision_matrix.cpp.
 1.8.11
 1.8.11