renderer
kn::renderer Declared in kraken/graphics/Renderer.hpp
At a glance
16 memberssetRenderBackendfunctionclearfunctionpresentfunctionsetVirtualResolutionfunctionunsetVirtualResolutionfunctiongetVirtualScalefunctiongetVirtualResolutionfunctiongetCurrentResolutionfunctiongetOutputResolutionfunctionreadPixelsfunctionsetDefaultFilterModefunctiongetDefaultFilterModefunctionsetTargetfunctiondrawfunctiondraw9SlicefunctiondrawBatchfunctionReference
C++ APIsetRenderBackend
functionvoid setRenderBackend(RenderBackend backend)No description in the source header.
clear
functionvoid clear(const Color &color={})No description in the source header.
present
functionvoid present()No description in the source header.
setVirtualResolution
functionvoid setVirtualResolution(int width, int height)No description in the source header.
unsetVirtualResolution
functionvoid unsetVirtualResolution()No description in the source header.
getVirtualScale
functionVec2 getVirtualScale()No description in the source header.
getVirtualResolution
functionVec2 getVirtualResolution()No description in the source header.
getCurrentResolution
functionVec2 getCurrentResolution()No description in the source header.
getOutputResolution
functionVec2 getOutputResolution()No description in the source header.
readPixels
functionPixelArray readPixels(const Rect &src={})No description in the source header.
setDefaultFilterMode
functionvoid setDefaultFilterMode(FilterMode filter)No description in the source header.
getDefaultFilterMode
functionFilterMode getDefaultFilterMode()No description in the source header.
setTarget
functionvoid setTarget(const Texture *target)No description in the source header.
void draw(const Texture &texture, const Transform &transform={}, const Vec2 &anchor=Anchor::TOP_LEFT, const Vec2 &pivot=Anchor::CENTER, const DrawOptions &options={})void draw(const Texture &texture, Rect dst, double angle=0.0, const Vec2 &pivot=Anchor::CENTER, const DrawOptions &options={})void draw(const Texture &texture, const Transform &transform, const DrawOptions &options)void draw(const Texture &texture, Rect dst, const DrawOptions &options)No description in the source header.
draw9Slice
functionvoid draw9Slice(const Texture &texture, const Rect &dst, const Rect &slice, const DrawOptions &options={})No description in the source header.
drawBatch
functionvoid drawBatch(const Texture &texture, std::span< const double > data, uint8_t columns, Batcher *batcher=nullptr, const DrawOptions &options={}, const Vec2 &anchor=Anchor::TOP_LEFT, const Vec2 &pivot=Anchor::CENTER, std::span< const DrawOptions > instanceOptions={}, std::span< const Rect > clipRects={})No description in the source header.