Function tcod::draw_quartergraphics¶
Defined in File image.hpp
Function Documentation¶
-
inline void tcod::draw_quartergraphics(TCOD_Console &dest, const TCOD_Image &source, const std::array<int, 2> &dest_xy = {0, 0}, const std::array<int, 4> &src_rect = {0, 0, -1, -1})¶
Draw a double resolution image on a console using quadrant character glyphs.
auto console = tcod::Console{80, 50}; TCODImage* image = new TCODImage(console.get_width() * 2, console.get_height() * 2); tcod::draw_quartergraphics(console, image);
New in version 1.19.
- Parameters
dest – The console to draw to.
source – The source image which will be rendered.
dest_xy – The upper-left position to where the source will be drawn.
source_rect – The
{left, top, width, height}
region of the source image to draw. A width or height of -1 will use the full size of the image.