MODULE v1.8.0

renderer

kn::renderer

Declared in kraken/graphics/Renderer.hpp

Reference

C++ API
void setRenderBackend(RenderBackend backend)

No description in the source header.

clear

function
void clear(const Color &color={})

No description in the source header.

present

function
void present()

No description in the source header.

void setVirtualResolution(int width, int height)

No description in the source header.

void unsetVirtualResolution()

No description in the source header.

Vec2 getVirtualScale()

No description in the source header.

Vec2 getVirtualResolution()

No description in the source header.

Vec2 getCurrentResolution()

No description in the source header.

Vec2 getOutputResolution()

No description in the source header.

readPixels

function
PixelArray readPixels(const Rect &src={})

No description in the source header.

void setDefaultFilterMode(FilterMode filter)

No description in the source header.

FilterMode getDefaultFilterMode()

No description in the source header.

setTarget

function
void setTarget(const Texture *target)

No description in the source header.

draw

function4 overloads
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

function
void draw9Slice(const Texture &texture, const Rect &dst, const Rect &slice, const DrawOptions &options={})

No description in the source header.

drawBatch

function
void 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.

Find your next step

Start typing to search the manual.