diff options
| author | Freya Murphy <freya@freyacat.org> | 2025-12-04 13:16:21 -0500 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2025-12-04 13:18:33 -0500 |
| commit | ba2f810f0752bdecf8253b34bd245c7939f23534 (patch) | |
| tree | 23a5fa60afb7f9f5d0ff1b51d11bb8dd24f46e04 /src/list.h | |
| download | voxel-ba2f810f0752bdecf8253b34bd245c7939f23534.tar.gz voxel-ba2f810f0752bdecf8253b34bd245c7939f23534.tar.bz2 voxel-ba2f810f0752bdecf8253b34bd245c7939f23534.zip | |
initial chunk rendering
Diffstat (limited to 'src/list.h')
| -rw-r--r-- | src/list.h | 26 |
1 files changed, 26 insertions, 0 deletions
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); |