jjMASKMAP class
A rectangular collision mask of solid/empty pixels.
Public static functions
- static auto CreateFromBool(bool filled) -> jjMASKMAP*
- Returns a new instance filled entirely solid or empty.
-
static auto CreateFromTile(std::
uint16_t tileID) -> jjMASKMAP* - Returns a new instance built from a tile's collision mask.
Constructors, destructors, conversion operators
- jjMASKMAP()
- Creates a new instance.
- ~jjMASKMAP()
Public functions
- void AddRef()
- Increments the reference count.
- void Release()
- Decrements the reference count.
- auto operator=(const jjMASKMAP& o) -> jjMASKMAP&
-
auto GetPixel(std::
uint32_t x, std:: uint32_t y) -> bool -
auto save(std::
uint16_t tileID, bool hFlip) const -> bool - Saves the mask into a tile's collision mask.