2018-08-19 01:30:53 +02:00
|
|
|
// Header for SFML unit tests.
|
|
|
|
//
|
2021-12-28 22:03:15 -07:00
|
|
|
// For a new graphics module test case, include this header.
|
2023-01-17 21:51:08 -07:00
|
|
|
// This ensures that string conversions are visible and can be used by Catch2 for debug output.
|
2018-08-19 01:30:53 +02:00
|
|
|
|
2022-12-20 20:17:38 -08:00
|
|
|
#pragma once
|
2018-08-19 01:30:53 +02:00
|
|
|
|
2024-02-08 14:28:57 +01:00
|
|
|
#include <SystemUtil.hpp>
|
2023-04-13 15:50:19 +02:00
|
|
|
#include <iosfwd>
|
2022-03-24 12:14:49 -06:00
|
|
|
|
2021-12-24 14:31:27 +01:00
|
|
|
namespace sf
|
2018-08-19 01:30:53 +02:00
|
|
|
{
|
2022-07-04 11:20:58 -05:00
|
|
|
struct BlendMode;
|
2015-04-28 23:28:02 -04:00
|
|
|
struct StencilMode;
|
2022-07-04 11:20:58 -05:00
|
|
|
class Color;
|
|
|
|
class Transform;
|
|
|
|
|
2023-04-13 15:50:19 +02:00
|
|
|
template <typename>
|
|
|
|
class Rect;
|
|
|
|
|
2022-07-04 11:20:58 -05:00
|
|
|
std::ostream& operator<<(std::ostream& os, const BlendMode& blendMode);
|
2015-04-28 23:28:02 -04:00
|
|
|
std::ostream& operator<<(std::ostream& os, const StencilMode& stencilMode);
|
2022-07-04 11:20:58 -05:00
|
|
|
std::ostream& operator<<(std::ostream& os, const Color& color);
|
|
|
|
std::ostream& operator<<(std::ostream& os, const Transform& transform);
|
|
|
|
|
|
|
|
template <typename T>
|
2023-04-13 15:50:19 +02:00
|
|
|
std::ostream& operator<<(std::ostream& os, const Rect<T>& rect);
|
2022-07-04 11:20:58 -05:00
|
|
|
} // namespace sf
|
2018-08-19 01:30:53 +02:00
|
|
|
|
2022-05-02 16:38:33 -06:00
|
|
|
bool operator==(const sf::Transform& lhs, const Approx<sf::Transform>& rhs);
|
2023-09-27 22:27:20 -06:00
|
|
|
|
|
|
|
template <typename T>
|
|
|
|
bool operator==(const sf::Rect<T>& lhs, const Approx<sf::Rect<T>>& rhs)
|
|
|
|
{
|
2024-06-15 18:42:23 +02:00
|
|
|
return lhs.position == Approx(rhs.value.position) && lhs.size == Approx(rhs.value.size);
|
2023-09-27 22:27:20 -06:00
|
|
|
}
|