Windows native GLFW and OpenGL backend for LunarRender.
.\scripts\build.ps1# 本地联调:把核心模块和本模块连成 workspace(该文件不提交)
@'
members = [
".",
"..",
]
'@ | Set-Content -Encoding utf8 moon.work
cmake -S . -B third_party/build -G "Visual Studio 17 2022" -A x64 -DBUILD_SHARED_LIBS=OFF
cmake --build third_party/build --config Release
moon fmt --check
moon check --target native
moon test --target native
moon build --target native --release examples/textured_cubemoon.work 必须是无 BOM 的 UTF-8;build.ps1 会自动按此写入。
| 示例 | 内容 |
|---|---|
| examples/triangle | 窗口、最小着色器和一个三角形 |
| examples/textured_cube | 程序生成棋盘纹理、材质、36 顶点旋转立方体 |
| examples/multi_mesh | 两个网格的上传、绘制与销毁 |
.\scripts\self-test.ps1cl /nologo /std:c11 /O2 /Fe:tools\resource_table_bench.exe tools\resource_table_bench.c
tools\resource_table_bench.exe.\scripts\publish-native.ps1 -DryRun
.\scripts\publish-native.ps1