CLASS v1.8.0

Mask

kn::Mask

Declared in kraken/graphics/Mask.hpp

Reference

C++ API

Mask

function3 overloads
Mask()=default
Mask(const Vec2 &size, bool filled=false)
Mask(const PixelArray &pixelArray, uint8_t threshold=1)

No description in the source header.

~Mask

function
~Mask()=default

No description in the source header.

copy

function
Mask copy() const

No description in the source header.

getSize

function
Vec2 getSize() const

No description in the source header.

getRect

function
Rect getRect() const

No description in the source header.

getAt

function
bool getAt(int x, int y) const

No description in the source header.

setAt

function
void setAt(int x, int y, bool value)

No description in the source header.

int getOverlapArea(const Mask &other, const Vec2 &offset={}) const

No description in the source header.

Mask getOverlapMask(const Mask &other, const Vec2 &offset={}) const

No description in the source header.

fill

function
void fill()

No description in the source header.

clear

function
void clear()

No description in the source header.

invert

function
void invert()

No description in the source header.

add

function
void add(const Mask &other, const Vec2 &offset={})

No description in the source header.

subtract

function
void subtract(const Mask &other, const Vec2 &offset={})

No description in the source header.

getCount

function
int getCount() const

No description in the source header.

Vec2 getCenterOfMass() const

No description in the source header.

getOutline

function
std::vector< Vec2 > getOutline() const

No description in the source header.

Rect getBoundingRect() const

No description in the source header.

collideMask

function
bool collideMask(const Mask &other, const Vec2 &offset={}) const

No description in the source header.

std::vector< Vec2 > getCollisionPoints(const Mask &other, const Vec2 &offset={}) const

No description in the source header.

isEmpty

function
bool isEmpty() const

No description in the source header.

getWidth

function
int getWidth() const

No description in the source header.

getHeight

function
int getHeight() const

No description in the source header.

PixelArray getPixelArray(const Color &color={255, 255, 255, 255}) const

No description in the source header.

Find your next step

Start typing to search the manual.