35#ifndef TCOD_CONSOLE_DRAWING_H_
36#define TCOD_CONSOLE_DRAWING_H_
59TCOD_DEPRECATED(
"Use TCOD_console_draw_rect_rgb instead.")
73TCOD_DEPRECATED(
"Use TCOD_console_draw_rect_rgb instead.")
87TCOD_DEPRECATED(
"Use TCOD_console_draw_rect_rgb instead.")
102 const TCOD_color_t* fg,
103 const TCOD_color_t* bg,
119 const TCOD_color_t* fg,
120 const TCOD_color_t* bg,
148 const
int* __restrict decoration,
184 const std::array<int, 4>& rect,
186 std::optional<TCOD_ColorRGB> fg,
187 std::optional<TCOD_ColorRGB> bg,
224 const std::array<int, 4>& rect,
225 const std::array<int, 9>& decoration,
226 std::optional<TCOD_ColorRGB> fg,
227 std::optional<TCOD_ColorRGB> bg,
233 &console, rect.at(0), rect.at(1), rect.at(2), rect.at(3), decoration.data(), fg_ptr, bg_ptr, flag, clear));
C types for console functions.
TCOD_Error
An enum of libtcod error codes.
Definition error.h:48
void draw_frame(TCOD_Console &console, const std::array< int, 4 > &rect, const std::array< int, 9 > &decoration, std::optional< TCOD_ColorRGB > fg, std::optional< TCOD_ColorRGB > bg, TCOD_bkgnd_flag_t flag=TCOD_BKGND_SET, bool clear=true)
Draw a decorative frame.
Definition console_drawing.h:222
void draw_rect(TCOD_Console &console, const std::array< int, 4 > &rect, int ch, std::optional< TCOD_ColorRGB > fg, std::optional< TCOD_ColorRGB > bg, TCOD_bkgnd_flag_t flag=TCOD_BKGND_SET)
Fill a region with the given graphic.
Definition console_drawing.h:182
TCOD_Error TCOD_console_draw_rect_rgb(TCOD_Console *console, int x, int y, int width, int height, int ch, const TCOD_color_t *fg, const TCOD_color_t *bg, TCOD_bkgnd_flag_t flag)
Draw a rectangle on a console with a shape of x,y,width,height.
void TCOD_console_put_rgb(TCOD_Console *console, int x, int y, int ch, const TCOD_color_t *fg, const TCOD_color_t *bg, TCOD_bkgnd_flag_t flag)
Place a single tile on a console at x,y.
void TCOD_console_hline(TCOD_Console *con, int x, int y, int l, TCOD_bkgnd_flag_t flag)
Draw a horizontal line using the default colors.
TCOD_bkgnd_flag_t
Background color blend modes.
Definition console.h:60
TCOD_Error TCOD_console_draw_frame_rgb(struct TCOD_Console *con, int x, int y, int width, int height, const int *decoration, const TCOD_ColorRGB *fg, const TCOD_ColorRGB *bg, TCOD_bkgnd_flag_t flag, bool clear)
Draw a decorated frame onto console with the shape of x, y, width, height.
void TCOD_console_vline(TCOD_Console *con, int x, int y, int l, TCOD_bkgnd_flag_t flag)
Draw a vertical line using the default colors.
void TCOD_console_rect(TCOD_Console *con, int x, int y, int rw, int rh, bool clear, TCOD_bkgnd_flag_t flag)
Draw a rectangle onto a console.
The libtcod namespace.
Definition bresenham.hpp:157
int check_throw_error(int error)
Check and throw error messages.
Definition error.hpp:57
A 3-channel RGB color struct.
Definition color.h:50
A libtcod console containing a grid of tiles with {ch, fg, bg} information.
Definition console.h:125