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.

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.
 

Detailed Description

Console simple drawing module.