Files
punchie-engine/include/Window.h
T

23 lines
508 B
C

#ifndef WINDOW_H
#define WINDOW_H
#include "Renderer.h"
#include "SDL.h"
#include "SDL_pixels.h"
#include <stdbool.h>
typedef struct window {
int width;
int height;
Renderer *renderer;
SDL_Window *SDL_base_window;
} Window;
bool init_window(Window *wnd, const char *title, int width, int height,
bool full_screen);
void fill_window_with_color(const Window *wnd, SDL_Color color);
void swap_render_buffers(const Window *wnd);
void destroy_window(Window *wnd);
#endif // !WINDOW_H