GameEngine API to allow for loading and removing assets as well as rendering textures using their AssetID
24 lines
528 B
C
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
|