diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-10-01 11:03:50 +0200 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-10-01 11:03:50 +0200 |
commit | 2d13805218eb34b6e06205c1b65c341ebcdad504 (patch) | |
tree | aeeb4d574defb3b68327adf38a02765ba4d3e20a /resource-manager/main.cpp | |
parent | a08f5acf483d5371ccab70ba75c39ac6a5f96ce7 (diff) |
changed resource manager to singleton
Diffstat (limited to 'resource-manager/main.cpp')
-rw-r--r-- | resource-manager/main.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/resource-manager/main.cpp b/resource-manager/main.cpp index 6b3a23e..0148555 100644 --- a/resource-manager/main.cpp +++ b/resource-manager/main.cpp @@ -15,8 +15,6 @@ #include <SDL_timer.h> #include <SDL_video.h> #include <cstddef> -#include <iostream> -#include <ostream> int main() { SDL_Init(SDL_INIT_VIDEO); @@ -32,8 +30,8 @@ int main() { SDL_Renderer * renderer = SDL_CreateRenderer(window, -1, 0); - - ResourceManager * rm = new ResourceManager(); + + ResourceManager* rm = ResourceManager::get_instance(); ResourceConverter resource_converter; Texture* img = rm->Load<Texture>("../img.png"); |