Modified the ObjectStore and the Hashmap and added the ObjectStore to

the GameManager
This commit is contained in:
abdelrahman committed 2022-09-21 19:55:45 +01:00
1 parent a0e76bc1fc
commit 79f28100bd
8 files changed
+181 -73

No files matched your search

+5
View File
@@ -49,9 +49,14 @@ void fill_window_with_color(const Window *wnd, SDL_Color color) {
void swap_render_buffers(const Window *wnd) { swap_buffers(wnd->renderer); }
void destroy_window(Window *wnd) {
if (!wnd) {
return;
}
if (wnd->SDL_base_window) {
if (wnd->renderer) {
destroy_renderer(wnd->renderer);
wnd->renderer = NULL;
}
SDL_DestroyWindow(wnd->SDL_base_window);