diff options
Diffstat (limited to 'src/StaticImage.cpp')
-rw-r--r-- | src/StaticImage.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/StaticImage.cpp b/src/StaticImage.cpp new file mode 100644 index 0000000..8d5bd63 --- /dev/null +++ b/src/StaticImage.cpp @@ -0,0 +1,10 @@ +#include "../include/StaticImage.hpp" + +namespace dchat +{ + SfmlStaticImage::SfmlStaticImage(const boost::filesystem::path &path) + { + if(!texture.loadFromFile(path.string())) + fprintf(stderr, "Failed to create texture for static image!\n"); + } +}
\ No newline at end of file |