Function tcod::blit

Function Documentation

inline void tcod::blit(TCOD_Console &dest, const TCOD_Console &source, const std::array<int, 2> &dest_xy = {0, 0}, std::array<int, 4> source_rect = {0, 0, 0, 0}, float foreground_alpha = 1.0f, float background_alpha = 1.0f)

Blit a region of tiles from one console to another.

Parameters
  • dest – The destination console.

  • source – The source console to blit from.

  • dest_xy – The upper-left position of the destination console to blit to.

  • source_rect – The source region {left, top, width, height} to blit from. A width or height of zero will use the entire console.

  • foreground_alpha

  • background_alpha