File: test_console_drawing.cpp

package info (click to toggle)
libtcod 1.24.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 5,728 kB
  • sloc: ansic: 46,186; cpp: 13,523; python: 4,814; makefile: 44; sh: 25
file content (12 lines) | stat: -rw-r--r-- 334 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12

#include <libtcod/console_drawing.h>

#include <catch2/catch_all.hpp>

#include "common.hpp"

TEST_CASE("Console rect") {
  auto console = tcod::Console{32, 32};
  tcod::draw_rect(console, {2, 2, 24, 24}, 0, std::nullopt, {{255, 0, 0}});
  tcod::draw_rect(console, {8, 8, 16, 1}, '-', tcod::ColorRGB{255, 255, 255}, std::nullopt);
}