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

+9 -3
View File
@@ -5,20 +5,26 @@
#include "SDL.h"
#include "SDL_pixels.h"
#include <stdbool.h>
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif // !__cplusplus
typedef struct window_size {
int32_t width;
int32_t height;
} WindowSize;
typedef struct window {
int width;
int height;
WindowSize defined_size;
WindowSize drawable_size;
Renderer *renderer;
SDL_Window *SDL_base_window;
SDL_Color background_color;
} Window;
bool init_window(Window *wnd, const char *title, int width, int height,
bool init_window(Window *wnd, const char *title, WindowSize size,
SDL_Color color, bool full_screen);
void clear_window(const Window *wnd);
void swap_render_buffers(const Window *wnd);