Implemented the core functionality of the ObjectStore and started
implementing the functionality for the AssetManager
This commit is contained in:
1 parent
79f28100bd
commit
c4f1775392
14 files changed
+330
-383
No files matched your search
+15
-1
@@ -9,6 +9,10 @@
|
||||
|
||||
bool init_window(Window *wnd, const char *title, int width, int height,
|
||||
bool full_screen) {
|
||||
if (!wnd) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Uint32 window_flags = SDL_WINDOW_ALLOW_HIGHDPI;
|
||||
|
||||
if (full_screen) {
|
||||
@@ -43,10 +47,20 @@ bool init_window(Window *wnd, const char *title, int width, int height,
|
||||
}
|
||||
|
||||
void fill_window_with_color(const Window *wnd, SDL_Color color) {
|
||||
if (!wnd) {
|
||||
return;
|
||||
}
|
||||
|
||||
render_clear(wnd->renderer, color);
|
||||
}
|
||||
|
||||
void swap_render_buffers(const Window *wnd) { swap_buffers(wnd->renderer); }
|
||||
void swap_render_buffers(const Window *wnd) {
|
||||
if (!wnd) {
|
||||
return;
|
||||
}
|
||||
|
||||
swap_buffers(wnd->renderer);
|
||||
}
|
||||
|
||||
void destroy_window(Window *wnd) {
|
||||
if (!wnd) {
|
||||
|
||||
Reference in new issue
Block a user