From 51f7699966ab856c873648ee25621b80421f8c8f Mon Sep 17 00:00:00 2001 From: heavydemon21 Date: Mon, 16 Sep 2024 17:34:05 +0200 Subject: loading images work through resource manager, however needs return fixing. cause right now static cast needs to be done outside --- resource-manager/Image_asset.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 resource-manager/Image_asset.cpp (limited to 'resource-manager/Image_asset.cpp') diff --git a/resource-manager/Image_asset.cpp b/resource-manager/Image_asset.cpp new file mode 100644 index 0000000..77eee2f --- /dev/null +++ b/resource-manager/Image_asset.cpp @@ -0,0 +1,12 @@ + + +#include "Image_asset.h" +#include + + + +Image::~Image(){ + if (surface) { + SDL_FreeSurface(surface); + } +} -- cgit v1.2.3