diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-11-17 09:47:45 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-11-17 09:59:29 +0100 |
commit | 453eac7f1f5ef70390ec51087fc1f190811a7507 (patch) | |
tree | 21a32ef6de9a3d7c29562484104b56c12518a6f0 /src/SfmlFixes.cpp | |
parent | fc49d40c0d2f6edbbe9dde1f1b53d6a17e9d9f7d (diff) |
Replace sfml with mgl
Diffstat (limited to 'src/SfmlFixes.cpp')
-rw-r--r-- | src/SfmlFixes.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/SfmlFixes.cpp b/src/SfmlFixes.cpp deleted file mode 100644 index d6d4b17..0000000 --- a/src/SfmlFixes.cpp +++ /dev/null @@ -1,15 +0,0 @@ -#include "../include/SfmlFixes.hpp" -#include <mutex> - -static std::mutex mutex; -namespace QuickMedia { - bool load_image_from_file(sf::Image &image, const std::string &filepath) { - std::lock_guard<std::mutex> lock(mutex); - return image.loadFromFile(filepath); - } - - bool load_image_from_memory(sf::Image &image, const void *data, size_t size) { - std::lock_guard<std::mutex> lock(mutex); - return image.loadFromMemory(data, size); - } -}
\ No newline at end of file |