Go to file
2026-03-20 10:39:34 +08:00
Apps Rebuild MetaCore Unity-like prototype 2026-03-20 10:39:34 +08:00
Source Rebuild MetaCore Unity-like prototype 2026-03-20 10:39:34 +08:00
tests Rebuild MetaCore Unity-like prototype 2026-03-20 10:39:34 +08:00
.gitignore Rebuild MetaCore Unity-like prototype 2026-03-20 10:39:34 +08:00
CMakeLists.txt Rebuild MetaCore Unity-like prototype 2026-03-20 10:39:34 +08:00
CMakePresets.json Rebuild MetaCore Unity-like prototype 2026-03-20 10:39:34 +08:00
README.md Rebuild MetaCore Unity-like prototype 2026-03-20 10:39:34 +08:00
vcpkg.json Rebuild MetaCore Unity-like prototype 2026-03-20 10:39:34 +08:00

MetaCore

MetaCore 是一个以 Unity 工作流为参考的纯 C++ 编辑器原型工程。

当前目标

  • 使用 GLFW + OpenGL + Dear ImGui Docking 搭建最小可运行编辑器
  • 使用 GameObject + Component 模型组织场景
  • 先把 Hierarchy / Scene / Inspector / Project / Console 跑通
  • 先体现清晰的渲染架构,再以模块化方式持续增加功能

技术栈

  • C++20
  • CMake
  • vcpkg
  • GLFW
  • glad
  • OpenGL 3.3
  • glm
  • Dear ImGui Docking

目录结构

  • Source/MetaCoreFoundation:基础服务
  • Source/MetaCorePlatform:窗口与输入
  • Source/MetaCoreScene:场景与对象模型
  • Source/MetaCoreRenderOpenGL 渲染架构
  • Source/MetaCoreEditor:编辑器模块与 Unity-like 界面
  • Apps/MetaCoreEditor:编辑器程序入口
  • Apps/MetaCorePlayer:运行时占位入口
  • Tests:基础烟雾测试

构建

cmake --preset vs2022-debug
cmake --build --preset build-debug
ctest --preset test-debug

当前完成内容

  • 单窗口 MetaCore 编辑器主循环
  • 场景视口离屏渲染
  • 网格、坐标轴、立方体绘制
  • Hierarchy 选择
  • Inspector 中编辑 Transform
  • 轨道/平移/缩放相机控制
  • 模块注册接口与内置编辑器模块