libtcod
Loading...
Searching...
No Matches
console_drawing.h File Reference

Console simple drawing module. More...

#include <array>
#include <optional>
#include "config.h"
#include "console_types.h"

Go to the source code of this file.

Namespaces

namespace  tcod
 The libtcod namespace.

Functions

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.
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.
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_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.
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.
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::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.
void tcod::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.

Detailed Description

Console simple drawing module.