载入中...
搜索中...
未找到
Voxel.h
浏览该文件的文档.
1#pragma once
2
3#include "common/Module.h"
5#include "voxel/VoxelWorld.h"
6
7#include <string>
8
9namespace eve::graphics {
10class Graphics;
11class Texture;
12} // namespace eve::graphics
13
14namespace eve::voxel {
15
29class Voxel : public Module {
30public:
32 Voxel() = default;
33 ~Voxel() override = default;
34
35 int getChunkSize() const { return kChunkSize; }
36
39
41 VoxelWorld *newWorld(const CubeTypeRegistry *types = nullptr);
42};
43
44} // namespace eve::voxel
Sparse chunk map + visibility selection (frustum + distance + face orientation). Meshing is neighbor-...
Definition VoxelWorld.h:52
High-performance voxel rendering module.
Definition Voxel.h:29
CubeTypeRegistry * newCubeTypes()
返回一个新的方块类型注册表(由调用者持有 / 脚本持有)。
Definition Voxel.cpp:16
int getChunkSize() const
Definition Voxel.h:35
~Voxel() override=default
VoxelWorld * newWorld(const CubeTypeRegistry *types=nullptr)
创建世界;内部拷贝注册表(传 nullptr 表示空注册表,类型 id 即纹理 id)。
Definition Voxel.cpp:18
卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局...
Definition AnimTrail.h:6
方块类型定义:名字、各面图集纹理、方向性、组合声明。 方向性方块在注册时按 orientation 绕 Y 轴展开成多个"具体类型"变体, 每个变体持有旋转后的各面纹理;渲染端只消费纹理 id,不接触 ...
Definition Chunk.h:12
constexpr int kChunkSize
Chunk edge length in voxels (fixed).
Definition VoxelPack.h:8