Function TCOD_console_draw_rect_rgb¶
Defined in File console_drawing.h
Function Documentation¶
-
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 ofx
,y
,width
,height
.If
ch
is 0 then the character code will not be updated.If
fg
,bg
is NULL then their respective colors will not be updated.