1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#ifndef WINDOW_H #define WINDOW_H #include <SDL.h> #include <stdbool.h> struct window { SDL_Window *window; SDL_Renderer *renderer; SDL_Surface *surface; unsigned int height; unsigned int width; char* title; }; int display_init(struct window *wobj); void display_stop(struct window *wobj); #endif