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