aboutsummaryrefslogtreecommitdiff
path: root/src/brailleboi.h
diff options
context:
space:
mode:
authorDrNuget <drnuget@outlook.com>2025-11-02 02:16:10 +0200
committerDrNuget <drnuget@outlook.com>2025-11-02 02:16:10 +0200
commit125e25428b5faa36e1ac96f091079282b4851b3e (patch)
tree4f32efde5b46bc2e86d45129874aafb5f35e200d /src/brailleboi.h
parent715eccf5d8e937a156190bbb03a93562c59618c5 (diff)
downloadbrailleboi-125e25428b5faa36e1ac96f091079282b4851b3e.tar.gz
create src folder, move library codes there
Diffstat (limited to 'src/brailleboi.h')
-rw-r--r--src/brailleboi.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/brailleboi.h b/src/brailleboi.h
new file mode 100644
index 0000000..f06d0da
--- /dev/null
+++ b/src/brailleboi.h
@@ -0,0 +1,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