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

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()

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

Height.

在文件 VoxelPack.h 第 43 行定义.

引用了 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

Pack.

在文件 VoxelPack.h 第 26 行定义.

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

◆ tex()

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

Tex.

在文件 VoxelPack.h 第 45 行定义.

引用了 bits.

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

◆ width()

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

Width.

在文件 VoxelPack.h 第 41 行定义.

引用了 bits.

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

◆ x()

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

X.

在文件 VoxelPack.h 第 35 行定义.

引用了 bits.

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

◆ y()

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

Y.

在文件 VoxelPack.h 第 37 行定义.

引用了 bits.

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

◆ z()

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

Z.

在文件 VoxelPack.h 第 39 行定义.

引用了 bits.

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

类成员变量说明

◆ bits

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

在文件 VoxelPack.h 第 23 行定义.

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


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