载入中...
搜索中...
未找到
#include "voxel/CubeType.h"#include "voxel/FaceDir.h"#include <cstdint>#include <string>#include <unordered_map>#include <vector>类 | |
| class | eve::voxel::CubeTypeRegistry |
命名空间 | |
| namespace | eve |
| namespace | eve::voxel |
| 方块类型定义:名字、各面图集纹理、方向性、组合声明。 方向性方块在注册时按 orientation 绕 Y 轴展开成多个"具体类型"变体, 每个变体持有旋转后的各面纹理;渲染端只消费纹理 id,不接触 orientation。 | |
函数 | |
| uint8_t | eve::voxel::resolveFaceTex (const CubeTypeRegistry &types, uint8_t id, FaceDir dir) |
| 求某个体素在某面方向上的实际图集纹理 id。 未注册的 id 退化为“所有面 = 原 id”(向后兼容:体素值即纹理 id)。 | |