Modified the ObjectStore and the Hashmap and added the ObjectStore to
the GameManager
This commit is contained in:
1 parent
a0e76bc1fc
commit
79f28100bd
8 files changed
+181
-73
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user