first commit

This commit is contained in:
onezplpl 2024-07-13 01:58:25 -04:00
commit 6b84f3115d
No known key found for this signature in database
GPG key ID: 7EC026A136F9EEC3
9 changed files with 14807 additions and 0 deletions

19
const.h Normal file
View file

@ -0,0 +1,19 @@
#ifndef V_CONST_H
#define V_CONST_H
typedef struct Vertex {
float pos[3];
} Vertex;
#define CHUNK_LENGTH 16
#define CHUNK_RADIUS_H 8
#define CHUNK_RADIUS_V 4
#define CHUNK_DIAMETER_H (CHUNK_RADIUS_H * 2 + 1)
#define CHUNK_DIAMETER_V (CHUNK_RADIUS_V * 2 + 1)
#define CHUNK_ALL CHUNK_DIAMETER_H *CHUNK_DIAMETER_H *CHUNK_DIAMETER_V
#define BLOCK_ALL CHUNK_LENGTH *CHUNK_LENGTH *CHUNK_LENGTH
#define CBLOCK_ALL BLOCK_ALL *CHUNK_ALL
#define CTRI_ALL BLOCK_ALL * 18 * sizeof(Vertex)
#endif