summaryrefslogtreecommitdiff
path: root/example/example.c
blob: 8f6a1bc5a9df2d77d31f39c578d7888e0a629471 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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;
}