summaryrefslogtreecommitdiff
path: root/test/src/TestUtilities/WindowUtil.cpp
blob: 52b3635788df76e98807dcb05997a0a133442c0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Note: No need to increase compile time by including TestUtilities/Window.hpp
#include <SFML/Window/VideoMode.hpp>
#include <sstream>

// String conversions for Catch framework
namespace Catch
{
    std::string toString(const sf::VideoMode& videoMode)
    {
        std::ostringstream stream;
        stream << videoMode.width << "x" << videoMode.height << "x" << videoMode.bitsPerPixel;
        return stream.str();
    }
}