PixelArray
kn::PixelArray Declared in kraken/graphics/PixelArray.hpp
At a glance
18 membersReference
C++ APIPixelArray()=defaultPixelArray(SDL_Surface *sdlSurface)PixelArray(int width, int height)PixelArray(const std::filesystem::path &filePath)PixelArray(const PixelArray &)=deletePixelArray(PixelArray &&other) noexceptNo description in the source header.
~PixelArray
function~PixelArray()No description in the source header.
PixelArray & operator=(const PixelArray &)=deletePixelArray & operator=(PixelArray &&other) noexceptNo description in the source header.
fill
functionvoid fill(const Color &color) constNo description in the source header.
void blit(const PixelArray &other, const Vec2 &pos, const Vec2 &anchor=Anchor::TOP_LEFT, const Rect &srcRect={}) constvoid blit(const PixelArray &other, const Rect &dstRect, const Rect &srcRect={}) constNo description in the source header.
setColorKey
functionvoid setColorKey(const Color &color) constNo description in the source header.
getColorKey
functionColor getColorKey() constNo description in the source header.
setAlpha
functionvoid setAlpha(uint8_t alpha) constNo description in the source header.
getAlpha
functionint getAlpha() constNo description in the source header.
getAt
functionColor getAt(int x, int y) constNo description in the source header.
setAt
functionvoid setAt(int x, int y, const Color &color) constNo description in the source header.
getWidth
functionint getWidth() constNo description in the source header.
getHeight
functionint getHeight() constNo description in the source header.
getSize
functionVec2 getSize() constNo description in the source header.
getRect
functionRect getRect() constNo description in the source header.
getSDL
functionSDL_Surface * getSDL() constNo description in the source header.
copy
functionPixelArray copy() constNo description in the source header.
scroll
functionvoid scroll(int dx, int dy, ScrollMode scrollMode) constNo description in the source header.