aboutsummaryrefslogtreecommitdiff
path: root/header.h
blob: 855cff3ec8949a3c95131c549889934443d39097 (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
28
29
30
#ifndef HEADER_H
# define HEADER_H

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

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

typedef struct
{
    int window_width;
    int window_height;
} GConf;

// mandelbrot.c
double mandelbrot_in_set(double _Complex c);
void mandelbrot_print(void);

// graphics.c
GState *graphics_init(GConf *conf);
void graphics_quit(GState *state);
void graphics_run(GState *state);

#endif