blob: 1d3e98934a1f5ec2a6041179cbffa118712acf50 (
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
|
#ifndef BRAILLEBOI_H
#define BRAILLEBOI_H
#define braillePrint(wcs, len, data) swprintf(wcs+wcslen(wcs), len, L"%lc", (0x2800|data))
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);
int braillePlot(int x, int y, image_buffer* buf);
void brailleClearBuffer(image_buffer* buf);
void brailleUpdateScreen(image_buffer* buf);
#endif
|