From ba2f810f0752bdecf8253b34bd245c7939f23534 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Thu, 4 Dec 2025 13:16:21 -0500 Subject: initial chunk rendering --- src/list.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/list.h (limited to 'src/list.h') diff --git a/src/list.h b/src/list.h new file mode 100644 index 0000000..6d2211b --- /dev/null +++ b/src/list.h @@ -0,0 +1,26 @@ +#pragma once + +typedef struct { + union { + float *fdata; + int *idata; + unsigned int *udata; + unsigned char *bdata; + void *data; + }; + int len; + int capacity; + int elmSize; +} List; + +void list_initf(List *list); +void list_initi(List *list); +void list_initu(List *list); +void list_initb(List *list); + +void list_pushf(List *list, float f); +void list_pushi(List *list, int i); +void list_pushu(List *list, unsigned int u); +void list_pushb(List *list, unsigned char u); + +void list_free(List *list); -- cgit v1.2.3-freya