Started working on figuring out how to properly support full screen and
high DPI
This commit is contained in:
1 parent
dbc8c88b89
commit
ffaa6e5ae7
8 files changed
+53
-22
No files matched your search
+9
-3
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user