Files
punchie-engine/include/Window.h
T
abdelrahman 3f71cf0f3f Connected the AssetManager to the GameEngine and added function in the
GameEngine API to allow for loading and removing assets as well as rendering
textures using their AssetID
2022-09-23 04:39:17 +01:00

24 lines
528 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;
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);
#endif // !WINDOW_H