载入中...
搜索中...
未找到
#include "voxel/CubeTypeRegistry.h"#include "voxel/FaceDir.h"#include "voxel/VoxelPack.h"#include <cstdint>#include <vector>类 | |
| class | eve::voxel::GreedyMesher |
| Greedy rectangle mesher for one 32³ dense voxel volume. Voxel storage: index = x + y*32 + z*32*32. Value 0 = air; 1..255 = type id. 更多... | |
命名空间 | |
| namespace | eve |
| namespace | eve::voxel |
| 方块类型定义:名字、各面图集纹理、方向性、组合声明。 方向性方块在注册时按 orientation 绕 Y 轴展开成多个"具体类型"变体, 每个变体持有旋转后的各面纹理;渲染端只消费纹理 id,不接触 orientation。 | |
类型定义 | |
| using | eve::voxel::ChunkSampler = uint8_t(*)(void *userData, int chunkX, int chunkY, int chunkZ, int localX, int localY, int localZ) |
| Optional out-of-chunk neighbor sampler for seam culling. Receives chunk coordinates plus the (possibly out-of-range) local voxel coords and returns the voxel id there (0 = air / unknown). Null sampler → out-of-chunk neighbors are treated as air (old behavior). | |