载入中...
搜索中...
未找到
VoxelPack.h 文件参考
#include <cstdint>

浏览源代码.

struct  eve::voxel::PackedRect
 Packed face-rectangle instance (exactly 32 bits): bits 0..4 : x (0..31) bits 5..9 : y (0..31) bits 10..14 : z (0..31) bits 15..19 : width - 1 (0..31 → size 1..32) bits 20..24 : height - 1 (0..31 → size 1..32) bits 25..31 : texture index (0..127) 更多...
 

命名空间

namespace  eve
 
namespace  eve::voxel
 方块类型定义:名字、各面图集纹理、方向性、组合声明。 方向性方块在注册时按 orientation 绕 Y 轴展开成多个"具体类型"变体, 每个变体持有旋转后的各面纹理;渲染端只消费纹理 id,不接触 orientation。
 

变量

constexpr int eve::voxel::kChunkSize = 32
 Chunk edge length in voxels (fixed).