7 #ifndef VOXELFARM_VOXELFARMCONFIG_H
8 #define VOXELFARM_VOXELFARMCONFIG_H
24 #define VF_DELETE delete
26 #define VOXELFARM_USE_DEFAULT_ALLOC 1
27 #define VF_RAWALLOC(bytes) (VoxelFarm::MallocDefault(bytes))
28 #define VF_RAWCALLOC(num, bytes) (VoxelFarm::CallocDefault(num, bytes))
29 #define VF_RAWREALLOC(ptr, bytes) (VoxelFarm::ReallocDefault(ptr, bytes))
30 #define VF_ALLOC(typ, num) ((typ *)VF_RAWALLOC((num) * sizeof(typ)))
31 #define VF_FREE(ptr) (free((ptr)))
37 typedef signed char int8_t;
38 typedef unsigned char uint8_t;
40 typedef signed short int16_t;
41 typedef unsigned short uint16_t;
43 typedef signed int int32_t;
44 typedef unsigned int uint32_t;
46 typedef signed __int64 int64_t;
47 typedef unsigned __int64 uint64_t;
49 typedef float float32_t;
50 typedef double float64_t;
56 using TVector = std::vector<T>;
59 using TList = std::list<T>;
61 template <
typename K,
typename V>
62 using TMap = std::map<K, V>;
65 using TSet = std::set<K>;
68 using TQueue = std::queue<K>;
71 using TDeque = std::deque<K>;
73 typedef std::string String;
81 static const int8_t LEVELS = 13;
84 static const int8_t LOD_0 = 2;
87 static const float64_t CELL_SIZE = 30.0;
90 #include "VoxelFarm.h"
92 #endif // VOXELFARM_VOXELFARMCONFIG_H
Contains all classes and functions for the VoxelFarm engine.