Started working on figuring out how to properly support full screen and

high DPI
This commit is contained in:
abdelrahman committed 2022-09-25 23:31:53 +01:00
1 parent dbc8c88b89
commit ffaa6e5ae7
8 files changed
+53 -22

No files matched your search

+6 -3
View File
@@ -4,6 +4,7 @@
#include "AssetManager.h"
#include "ObjectStore.h"
#include "SDL_pixels.h"
#include "Window.h"
#include "reusable_ids.h"
#include <stdbool.h>
#include <stdint.h>
@@ -12,10 +13,12 @@
extern "C" {
#endif // !__cplusplus
bool init_engine(const char *game_name, uint32_t window_width,
uint32_t window_height, SDL_Color window_background_color,
bool full_screen, uint8_t audio_tracks);
bool init_engine(const char *game_name, WindowSize window_size,
SDL_Color window_background_color, bool full_screen,
uint8_t audio_tracks);
bool game_running();
WindowSize get_window_defined_size();
WindowSize get_window_drawable_size();
ObjectID add_object(void *object, EventHandlerPtr eh, UpdateFuncPtr uf,
RenderFuncPtr rf);
void remove_object(ObjectID *id);