Mask
kn::Mask Declared in kraken/graphics/Mask.hpp
At a glance
24 membersMaskfunction~MaskfunctioncopyfunctiongetSizefunctiongetRectfunctiongetAtfunctionsetAtfunctiongetOverlapAreafunctiongetOverlapMaskfunctionfillfunctionclearfunctioninvertfunctionaddfunctionsubtractfunctiongetCountfunctiongetCenterOfMassfunctiongetOutlinefunctiongetBoundingRectfunctioncollideMaskfunctiongetCollisionPointsfunctionisEmptyfunctiongetWidthfunctiongetHeightfunctiongetPixelArrayfunctionReference
C++ APIMask()=defaultMask(const PixelArray &pixelArray, uint8_t threshold=1)No description in the source header.
~Mask
function~Mask()=defaultNo description in the source header.
copy
functionMask copy() constNo description in the source header.
getSize
functionVec2 getSize() constNo description in the source header.
getRect
functionRect getRect() constNo description in the source header.
getAt
functionbool getAt(int x, int y) constNo description in the source header.
setAt
functionvoid setAt(int x, int y, bool value)No description in the source header.
getOverlapArea
functionNo description in the source header.
getOverlapMask
functionNo description in the source header.
fill
functionvoid fill()No description in the source header.
clear
functionvoid clear()No description in the source header.
invert
functionvoid invert()No description in the source header.
add
functionNo description in the source header.
subtract
functionNo description in the source header.
getCount
functionint getCount() constNo description in the source header.
getCenterOfMass
functionVec2 getCenterOfMass() constNo description in the source header.
getOutline
functionstd::vector< Vec2 > getOutline() constNo description in the source header.
getBoundingRect
functionRect getBoundingRect() constNo description in the source header.
collideMask
functionNo description in the source header.
getCollisionPoints
functionNo description in the source header.
isEmpty
functionbool isEmpty() constNo description in the source header.
getWidth
functionint getWidth() constNo description in the source header.
getHeight
functionint getHeight() constNo description in the source header.
getPixelArray
functionPixelArray getPixelArray(const Color &color={255, 255, 255, 255}) constNo description in the source header.