From 35558b39040d37c939bd68b56985d6cb5385a451 Mon Sep 17 00:00:00 2001 From: realtradam Date: Sun, 4 Jun 2023 02:35:00 -0400 Subject: refactor to have graphics and windowing seperate --- src/window/irodeo_window_t.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/window/irodeo_window_t.h (limited to 'src/window/irodeo_window_t.h') diff --git a/src/window/irodeo_window_t.h b/src/window/irodeo_window_t.h new file mode 100644 index 0000000..e2dd0a4 --- /dev/null +++ b/src/window/irodeo_window_t.h @@ -0,0 +1,21 @@ +#pragma once + +// -- external -- +#include "SDL.h" +#include "SDL_syswm.h" + +// -- system -- +#include "inttypes.h" +#include "stdbool.h" + +typedef +struct +{ + SDL_Window* window; + SDL_Surface* screen_surface; + SDL_SysWMinfo wmi; + uint16_t screen_width; + uint16_t screen_height; + bool quit; +} +irodeo_window_state_t; -- cgit v1.2.3