2022-05-22 12:43:10 +08:00
|
|
|
#include <SFML/Graphics/Glyph.hpp>
|
|
|
|
|
2022-07-18 06:18:40 +08:00
|
|
|
#include <doctest/doctest.h>
|
2022-05-22 12:43:10 +08:00
|
|
|
|
2022-07-05 00:20:58 +08:00
|
|
|
#include <GraphicsUtil.hpp>
|
|
|
|
|
2022-07-05 13:51:18 +08:00
|
|
|
TEST_CASE("[Graphics] sf::Glyph")
|
2022-05-22 12:43:10 +08:00
|
|
|
{
|
|
|
|
SUBCASE("Construction")
|
|
|
|
{
|
|
|
|
const sf::Glyph glyph;
|
2022-07-18 06:18:40 +08:00
|
|
|
CHECK(glyph.advance == 0.f);
|
2022-05-22 12:43:10 +08:00
|
|
|
CHECK(glyph.lsbDelta == 0);
|
|
|
|
CHECK(glyph.rsbDelta == 0);
|
|
|
|
CHECK(glyph.bounds == sf::FloatRect());
|
|
|
|
CHECK(glyph.textureRect == sf::IntRect());
|
|
|
|
}
|
|
|
|
}
|