aboutsummaryrefslogtreecommitdiff
path: root/include/brailleboi.h
diff options
context:
space:
mode:
authorDrNuget <drnuget@outlook.com>2025-12-27 05:13:48 +0200
committerDrNuget <drnuget@outlook.com>2025-12-27 05:13:48 +0200
commitd7e2dd842af87d0014fdb210286d0eb86a2e5934 (patch)
treed39e7039eb33ee1c3322e4b069acb49127b4acdb /include/brailleboi.h
parentfc35c0f8ed323d70c8f02dd131c9a531d02f6cab (diff)
downloadbrailleboi-d7e2dd842af87d0014fdb210286d0eb86a2e5934.tar.gz
move header file to include folderHEADmaster
Diffstat (limited to 'include/brailleboi.h')
-rw-r--r--include/brailleboi.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/brailleboi.h b/include/brailleboi.h
new file mode 100644
index 0000000..26ada93
--- /dev/null
+++ b/include/brailleboi.h
@@ -0,0 +1,24 @@
+#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 brailleClearBuffer(image_buffer* buf);
+
+void brailleUpdateScreen(image_buffer* buf);
+
+#endif