#include "sdl/surface.hpp"
#include "sdl/utils.hpp"
#include <algorithm>
#include <array>
#include <boost/test/unit_test.hpp>
Go to the source code of this file.
|
constexpr uint32_t | red = 0xFF'FF'00'00 |
|
constexpr uint32_t | green = 0xFF'00'FF'00 |
|
constexpr uint32_t | blue = 0xFF'00'00'FF |
|
constexpr uint32_t | yellow = 0xFF'FF'FF'00 |
|
constexpr uint32_t | white = 0xFF'FF'FF'FF |
|
constexpr uint32_t | black = 0xFF'00'00'00 |
|
constexpr std::array< uint32_t, 16 > | img_4x4 |
|
constexpr std::array< uint32_t, 4 > | img_4x4_to_2x2_result |
|
constexpr std::array< uint32_t, 6 > | img_4x4_to_3x2_result |
|
◆ GETTEXT_DOMAIN
#define GETTEXT_DOMAIN "wesnoth-test" |
◆ array_to_surface()
template<size_t w, size_t h>
surface array_to_surface |
( |
const std::array< uint32_t, w *h > & |
arr | ) |
|
◆ BOOST_AUTO_TEST_CASE() [1/4]
BOOST_AUTO_TEST_CASE |
( |
test_scale_sharp_fractional |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [2/4]
BOOST_AUTO_TEST_CASE |
( |
test_scale_sharp_nullptr |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [3/4]
BOOST_AUTO_TEST_CASE |
( |
test_scale_sharp_round |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [4/4]
BOOST_AUTO_TEST_CASE |
( |
test_scale_sharp_zero |
| ) |
|
◆ surface_to_vec()
static std::vector<uint32_t> surface_to_vec |
( |
const surface & |
surf | ) |
|
|
static |
◆ black
constexpr uint32_t black = 0xFF'00'00'00 |
|
constexpr |
◆ blue
constexpr uint32_t blue = 0xFF'00'00'FF |
|
constexpr |
◆ green
constexpr uint32_t green = 0xFF'00'FF'00 |
|
constexpr |
◆ img_4x4
constexpr std::array<uint32_t, 16> img_4x4 |
|
constexpr |
◆ img_4x4_to_2x2_result
constexpr std::array<uint32_t, 4> img_4x4_to_2x2_result |
|
constexpr |
◆ img_4x4_to_3x2_result
constexpr std::array<uint32_t, 6> img_4x4_to_3x2_result |
|
constexpr |
◆ red
constexpr uint32_t red = 0xFF'FF'00'00 |
|
constexpr |
◆ white
constexpr uint32_t white = 0xFF'FF'FF'FF |
|
constexpr |
◆ yellow
constexpr uint32_t yellow = 0xFF'FF'FF'00 |
|
constexpr |