summaryrefslogtreecommitdiff
path: root/kc/core/video.h
diff options
context:
space:
mode:
authorAda Christine <adachristine18@gmail.com>2023-02-05 17:51:50 +0000
committerAda Christine <adachristine18@gmail.com>2023-02-05 17:51:50 +0000
commitb3b8fcf9e1c2b47ae21f341fe411de6539ee1070 (patch)
treebe5ea3956672a97de89ccb50768430c8d0b218f1 /kc/core/video.h
parent16ac52200a768d8f0e93896ec3fa174e825f2f24 (diff)
cleanups
Diffstat (limited to 'kc/core/video.h')
-rw-r--r--kc/core/video.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/kc/core/video.h b/kc/core/video.h
index 7b06f94..43f5714 100644
--- a/kc/core/video.h
+++ b/kc/core/video.h
@@ -1,6 +1,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;
+};