Function TCOD_console_rect

Function Documentation

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.

Parameters
  • con – A console pointer.

  • x – The starting region, the left-most position being 0.

  • y – The starting region, the top-most position being 0.

  • rw – The width of the rectangle.

  • rh – The height of the rectangle.

  • clear – If true the drawing region will be filled with spaces.

  • flag – The blending flag to use.