aboutsummaryrefslogtreecommitdiff
path: root/src/display.h
blob: 1dadb0fe3a4c97d70cdd8d589a08d1f744d74ed7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef DISPLAY_H
#define DISPLAY_H

typedef struct dspl_createinfo {
    int width;
    int height;
    char *name;
    int fps;
    void (*update_func)(void);
} dspl_createinfo;

#define OFFSETX (info.width/2)
#define OFFSETY (info.height/8)

void dspl_create(dspl_createinfo info);
void dspl_start(void);
void dspl_destroy(void);

void dspl_draw_line(int x1, int y1, int x2, int y2, int c);
void dspl_draw_circle(int cx, int cy, int r);

#endif