This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SFML/Graphics.hpp> | |
#include <vector> | |
struct wall { | |
float x1, y1, x2, y2; | |
wall(float x1, float y1, float x2, float y2) : x1(x1), y1(y1), x2(x2), y2(y2) {} | |
}; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.10) | |
project(my_sfml_project) | |
# Find SFML and the given components | |
find_package(SFML 2.5 COMPONENTS graphics window system) | |
# Add the SFML include dir | |
include_directories(${SFML_INCLUDE_DIR}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//////////////////////////////////////////////////////////// | |
ClipboardImpl& ClipboardImpl::operator >> (sf::String& data) | |
{ | |
data = ""; | |
if (!OpenClipboard(NULL)) | |
return *this; | |
if (IsClipboardFormatAvailable(CF_UNICODETEXT)) | |
{ |
NewerOlder