summaryrefslogtreecommitdiff
path: root/kc/core/video.h
blob: 43f5714f232e3049329e4541f9a3976a0e2cf7f4 (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
28
29
30
31
32
33
#pragma once

#include <stdint.h>

int video_init(void);
int video_putchar(int c);

struct video_point
{
    int32_t x;
    int32_t y;
};

struct video_size
{
    int32_t width;
    int32_t height;
};

struct video_rect
{
    struct video_point pos;
    struct video_size size;
};

struct video_color
{
    uint8_t red;
    uint8_t green;
    uint8_t blue;
    uint8_t alpha;
};