aboutsummaryrefslogtreecommitdiff
path: root/inc/graphics.h
blob: efe7dcd41de9836b3080132e29d5eeb559b61049 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef GRAPHICS_H
# define GRAPHICS_H

# include <stdbool.h>
# include <SDL2/SDL.h>

typedef struct
{
    SDL_Window		*window;
    SDL_Renderer	*renderer;
    bool 			running;
}					t_state;

void graphics_init(t_state *state, int width, int height);
void graphics_quit(t_state *state);
void graphics_run(t_state *state);

#endif