载入中...
搜索中...
未找到
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) 更多...
#include <VoxelPack.h>
Public 成员函数 | |
| int | x () const |
| X. | |
| int | y () const |
| Y. | |
| int | z () const |
| Z. | |
| int | width () const |
| Width. | |
| int | height () const |
| Height. | |
| int | tex () const |
| Tex. | |
静态 Public 成员函数 | |
| static PackedRect | pack (int x, int y, int z, int width, int height, int tex) |
| Pack. | |
Public 属性 | |
| uint32_t | bits = 0 |
详细描述
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)
Origin is the min corner of the rectangle in chunk-local voxel coords. Width/height span the face tangent axes (see FaceDir).
在文件 VoxelPack.h 第 22 行定义.
成员函数说明
◆ height()
|
inline |
◆ pack()
|
inlinestatic |
◆ tex()
|
inline |
◆ width()
|
inline |
◆ x()
|
inline |
◆ y()
|
inline |
◆ z()
|
inline |
类成员变量说明
◆ bits
| uint32_t eve::voxel::PackedRect::bits = 0 |
该结构体的文档由以下文件生成:
- src/modules/voxel/VoxelPack.h