first commit
This commit is contained in:
commit
6b84f3115d
9 changed files with 14807 additions and 0 deletions
19
const.h
Normal file
19
const.h
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue