载入中...
搜索中...
未找到

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
 
int y () const
 
int z () const
 
int width () const
 
int height () const
 
int tex () const
 

静态 Public 成员函数

static PackedRect pack (int x, int y, int z, int width, int height, int tex)
 

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.h22 行定义.

成员函数说明

◆ height()

int eve::voxel::PackedRect::height ( ) const
inline

在文件 VoxelPack.h37 行定义.

引用了 bits.

被这些函数引用 eve::voxel::decodePackedRect() , 以及 pack().

◆ pack()

static PackedRect eve::voxel::PackedRect::pack ( int  x,
int  y,
int  z,
int  width,
int  height,
int  tex 
)
inlinestatic

在文件 VoxelPack.h25 行定义.

引用了 bits, height(), tex(), width(), x(), y() , 以及 z().

◆ tex()

int eve::voxel::PackedRect::tex ( ) const
inline

在文件 VoxelPack.h38 行定义.

引用了 bits.

被这些函数引用 eve::voxel::decodePackedRect() , 以及 pack().

◆ width()

int eve::voxel::PackedRect::width ( ) const
inline

在文件 VoxelPack.h36 行定义.

引用了 bits.

被这些函数引用 eve::voxel::decodePackedRect() , 以及 pack().

◆ x()

int eve::voxel::PackedRect::x ( ) const
inline

在文件 VoxelPack.h33 行定义.

引用了 bits.

被这些函数引用 eve::voxel::decodePackedRect() , 以及 pack().

◆ y()

int eve::voxel::PackedRect::y ( ) const
inline

在文件 VoxelPack.h34 行定义.

引用了 bits.

被这些函数引用 eve::voxel::decodePackedRect() , 以及 pack().

◆ z()

int eve::voxel::PackedRect::z ( ) const
inline

在文件 VoxelPack.h35 行定义.

引用了 bits.

被这些函数引用 eve::voxel::decodePackedRect() , 以及 pack().

类成员变量说明

◆ bits

uint32_t eve::voxel::PackedRect::bits = 0

在文件 VoxelPack.h23 行定义.

被这些函数引用 height(), pack(), tex(), width(), x(), y() , 以及 z().


该结构体的文档由以下文件生成: