载入中...
搜索中...
未找到
Voxel.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
4
5#include "common/Module.h"
7#include "voxel/VoxelWorld.h"
8
9#include <string>
10
11namespace eve::graphics {
12class Graphics;
13class Texture;
14} // namespace eve::graphics
15
16namespace eve::voxel {
17
32public:
35 Voxel() = default;
37 ~Voxel() override = default;
38
40 int getChunkSize() const { return kChunkSize; }
41
43 CubeTypeRegistry *newCubeTypes();
44
46 VoxelWorld *newWorld(const CubeTypeRegistry *types = nullptr);
47};
48
49} // namespace eve::voxel
#define EVENGINE_API_DOMAINS
Definition Export.h:110
EVENGINE_API_FOUNDATION public API.
Definition Module.h:46
EVENGINE_API_DOMAINS public API.
Sparse chunk map + visibility selection (frustum + distance + face orientation). Meshing is neighbor-...
Definition VoxelWorld.h:60
High-performance voxel rendering module.
Definition Voxel.h:31
Voxel()=default
Voxel.
int getChunkSize() const
Returns the chunk size.
Definition Voxel.h:40
~Voxel() override=default
Voxel.
卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局...
Definition Animation.h:25
方块类型定义:名字、各面图集纹理、方向性、组合声明。 方向性方块在注册时按 orientation 绕 Y 轴展开成多个"具体类型"变体, 每个变体持有旋转后的各面纹理;渲染端只消费纹理 id,不接触 ...
Definition Chunk.h:12
constexpr int kChunkSize
Chunk edge length in voxels (fixed).
Definition VoxelPack.h:8