From 6c080c486f987ba30e7efe209f1310c6cfca0beb Mon Sep 17 00:00:00 2001 From: dweller Date: Wed, 31 Jul 2024 02:37:41 +0300 Subject: initial commit --- example/example.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 example/example.c (limited to 'example/example.c') 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 + * + * BSD 3-Clause License (BSD-3-Clause) + * See LICENSE for details + */ + +#include + +#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; +} -- cgit v1.2.3