transfered from codeberg
This commit is contained in:
16
source_code/terrain_module/terrain/terrain.h
Normal file
16
source_code/terrain_module/terrain/terrain.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifndef terrain_h
|
||||
#define terrain_h
|
||||
|
||||
struct chunk_struct;
|
||||
struct chunk_position_struct;
|
||||
|
||||
#define grass_height -1
|
||||
|
||||
/**
|
||||
* Iterates through every coordinate in a chunk, calculating terrain height
|
||||
* and cave presence to populate the block data array.
|
||||
*/
|
||||
void generate_terrain(struct chunk_struct *chunk,
|
||||
struct chunk_position_struct* chunks_world_position);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user