summaryrefslogtreecommitdiff
path: root/example/example.c
diff options
context:
space:
mode:
authordweller <dweller@cabin.digital>2024-07-31 02:37:41 +0300
committerdweller <dweller@cabin.digital>2024-07-31 02:37:41 +0300
commit6c080c486f987ba30e7efe209f1310c6cfca0beb (patch)
treeb18984337e4c53cd1b83a33701c875e0cacfa81f /example/example.c
initial commitHEADmaster
Diffstat (limited to 'example/example.c')
-rw-r--r--example/example.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/example/example.c b/example/example.c
new file mode 100644
index 0000000..8f6a1bc
--- /dev/null
+++ b/example/example.c
@@ -0,0 +1,27 @@
+/*
+ * Copyright (C) 2024 dwlr <dweller@cabin.digital>
+ *
+ * BSD 3-Clause License (BSD-3-Clause)
+ * See LICENSE for details
+ */
+
+#include <stdio.h>
+
+#include "common.h"
+#include "tga.c"
+#include "cli.c"
+
+
+const u8 image[] =
+{
+ #include "image.tga.h"
+};
+
+int main(void)
+{
+ texture tex = {0};
+ tga2tex_from_mem(&tex, image, sizeof(image));
+ cli_draw_tex(&tex, true); /* true - Black&White, false - True Color */
+
+ return 0;
+}