mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
16 lines
416 B
C++
16 lines
416 B
C++
// Note: No need to increase compile time by including TestUtilities/Window.hpp
|
|
#include <SFML/Window/VideoMode.hpp>
|
|
#include <sstream>
|
|
|
|
#include <doctest.h>
|
|
|
|
namespace sf
|
|
{
|
|
doctest::String toString(const sf::VideoMode& videoMode)
|
|
{
|
|
std::ostringstream stream;
|
|
stream << videoMode.width << "x" << videoMode.height << "x" << videoMode.bitsPerPixel;
|
|
return stream.str().c_str();
|
|
}
|
|
}
|