blob: bb7e4913fdf0a516100df25d3fdda43bffc93a92 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#ifndef GRAPHICS_H
# define GRAPHICS_H
# include <stdbool.h>
# include <SDL2/SDL.h>
# include "cardioid.h"
typedef struct
{
SDL_Window *window;
SDL_Renderer *renderer;
t_cardioid *cardioid;
bool running;
} t_state;
void graphics_init(t_state *state, int width, int height, t_cardioid *cardioid);
void graphics_quit(t_state *state);
void graphics_run(t_state *state);
#endif
|