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

typedef struct image_buffer {
	int width, height;
	int char_width, char_height;
	int* contents;
} image_buffer;

int brailleInit(int width, int height, image_buffer* buf);

int brailleStop(image_buffer* buf);

int brailleReorganizeBits(int old);

void braillePrint(int data);

int braillePlot(int x, int y, image_buffer* buf);

void brailleUpdateScreen(image_buffer* buf);

#endif