added constructor for external surfaces
This commit is contained in:
1 parent
027b9ba84a
commit
84a196ab1a
2 files changed
+5
No files matched your search
@@ -35,3 +35,7 @@ Image::Image(const std::string& path) {
|
||||
if (!loaded) throw std::runtime_error(IMG_GetError());
|
||||
_s.reset(loaded);
|
||||
}
|
||||
|
||||
Image::Image(SDL_Surface* surface) {
|
||||
_s.reset(surface);
|
||||
}
|
||||
Reference in new issue
Block a user