CLASS v1.8.0

PixelArray

kn::PixelArray

Declared in kraken/graphics/PixelArray.hpp

Reference

C++ API

PixelArray

function6 overloads
PixelArray()=default
PixelArray(SDL_Surface *sdlSurface)
PixelArray(int width, int height)
PixelArray(const std::filesystem::path &filePath)
PixelArray(const PixelArray &)=delete
PixelArray(PixelArray &&other) noexcept

No description in the source header.

~PixelArray

function
~PixelArray()

No description in the source header.

operator=

function2 overloads
PixelArray & operator=(const PixelArray &)=delete
PixelArray & operator=(PixelArray &&other) noexcept

No description in the source header.

fill

function
void fill(const Color &color) const

No description in the source header.

blit

function2 overloads
void blit(const PixelArray &other, const Vec2 &pos, const Vec2 &anchor=Anchor::TOP_LEFT, const Rect &srcRect={}) const
void blit(const PixelArray &other, const Rect &dstRect, const Rect &srcRect={}) const

No description in the source header.

setColorKey

function
void setColorKey(const Color &color) const

No description in the source header.

getColorKey

function
Color getColorKey() const

No description in the source header.

setAlpha

function
void setAlpha(uint8_t alpha) const

No description in the source header.

getAlpha

function
int getAlpha() const

No description in the source header.

getAt

function
Color getAt(int x, int y) const

No description in the source header.

setAt

function
void setAt(int x, int y, const Color &color) 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.

getSize

function
Vec2 getSize() const

No description in the source header.

getRect

function
Rect getRect() const

No description in the source header.

getSDL

function
SDL_Surface * getSDL() const

No description in the source header.

copy

function
PixelArray copy() const

No description in the source header.

scroll

function
void scroll(int dx, int dy, ScrollMode scrollMode) const

No description in the source header.

Find your next step

Start typing to search the manual.