diff options
Diffstat (limited to 'example/example.c')
-rw-r--r-- | example/example.c | 27 |
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; +} |