blob: ca21a98cac6b6657b2241e9fecb56d8fa273c9a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#ifndef GRAPHICS_H
# define GRAPHICS_H
# include <stdbool.h>
# include <SDL2/SDL.h>
# include "config.h"
typedef struct
{
SDL_Window *window;
SDL_Renderer *renderer;
double factor;
double points_num;
struct
{
double x;
double y;
} center;
double radius;
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
|