53 lines
1.0 KiB
C++
53 lines
1.0 KiB
C++
#ifndef DEFINE_H__
|
|
#define DEFINE_H__
|
|
|
|
#include <iostream>
|
|
|
|
#define CHUNK_SIZE_X 16
|
|
#define CHUNK_SIZE_Y 128
|
|
#define CHUNK_SIZE_Z 16
|
|
#define MAX_SELECTION_DISTANCE 5
|
|
#define SEED 12345
|
|
|
|
#define SRV_PORT 1025
|
|
#define CLI_PORT 1026
|
|
|
|
#ifdef _DEBUG
|
|
#define WORLD_SIZE_X 64
|
|
#define WORLD_SIZE_Y 64
|
|
|
|
#define FRAMES_RENDER_CHUNKS 4
|
|
#define FRAMES_UPDATE_CHUNKS 4
|
|
#define FRAMES_DELETE_CHUNKS 4
|
|
|
|
#define THREADS_GENERATE_CHUNKS 1
|
|
#define THREADS_UPDATE_CHUNKS 1
|
|
#define THREADS_DELETE_CHUNKS 1
|
|
|
|
#define VIEW_DISTANCE 256
|
|
#define TEXTURE_SIZE 128
|
|
#define MAX_BULLETS 64
|
|
#endif
|
|
|
|
#ifdef NDEBUG
|
|
#define WORLD_SIZE_X 16
|
|
#define WORLD_SIZE_Y 16
|
|
|
|
#define FRAMES_RENDER_CHUNKS 1
|
|
#define FRAMES_UPDATE_CHUNKS 1
|
|
#define FRAMES_DELETE_CHUNKS 1
|
|
|
|
#define THREADS_GENERATE_CHUNKS 12
|
|
#define THREADS_UPDATE_CHUNKS 5
|
|
#define THREADS_DELETE_CHUNKS 2
|
|
|
|
#define VIEW_DISTANCE 1024
|
|
#define TEXTURE_SIZE 512
|
|
#define MAX_BULLETS 512
|
|
#endif
|
|
|
|
typedef uint8_t BlockType;
|
|
enum BLOCK_TYPE { BTYPE_AIR, BTYPE_DIRT, BTYPE_GRASS, BTYPE_METAL, BTYPE_ICE, BTYPE_LAST };
|
|
|
|
#endif // DEFINE_H__
|