Files
punchie-engine/include/Window.h
T
abdelrahman dfee36ffe9 Enabled SDL_image's support for PNG and TIFF files and improved the
AssetManager with a hashing function, a linked list structure to store
the hashes as well as a reference counter to support multiple users
sharing the same asset.
2022-09-24 04:17:16 +01:00

32 lines
629 B
C

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