Function TCOD_console_blit

Function Documentation

void TCOD_console_blit(const TCOD_Console *src, int xSrc, int ySrc, int wSrc, int hSrc, TCOD_Console *dst, int xDst, int yDst, float foreground_alpha, float background_alpha)

Blit from one console to another.

If the source console has a key color, this function will use it.

Changed in version 1.16: Blits can now handle per-cell alpha transparency.

Parameters
  • src – Pointer to the source console.

  • xSrc – The left region of the source console to blit from.

  • ySrc – The top region of the source console to blit from.

  • wSrc – The width of the region to blit from. If 0 then it will fill to the maximum width.

  • hSrc – The height of the region to blit from. If 0 then it will fill to the maximum height.

  • dst – Pointer to the destination console.

  • xDst – The left corner to blit onto the destination console.

  • yDst – The top corner to blit onto the destination console.

  • foreground_alpha – Foreground blending alpha.

  • background_alpha – Background blending alpha.