Skip to content

Commit 03304a4

Browse files
committed
docs: quick start uses package templates; bump versions to 0.0.6
1 parent 3fb2c9a commit 03304a4

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,17 @@
2121
## 快速开始
2222

2323
```bash
24-
mcpp new myapp --template gui && cd myapp && mcpp run # 窗口直接出现
24+
mcpp new myapp --template imgui && cd myapp && mcpp run # 窗口直接出现
25+
# 模板随库分发、版本自动对齐:
26+
# mcpp new --list-templates imgui # 列出库提供的模板
27+
# mcpp new ide --template imgui:docking # IDE 式停靠布局(docking-full)
2528
```
2629

2730
或在已有项目中手动接入:
2831

2932
```toml
3033
[dependencies]
31-
imgui = "0.0.5"
34+
imgui = "0.0.6"
3235
```
3336

3437
```cpp
@@ -66,7 +69,7 @@ int main() {
6669

6770
```toml
6871
[dependencies]
69-
imgui = { version = "0.0.5", features = ["docking-full"] }
72+
imgui = { version = "0.0.6", features = ["docking-full"] }
7073
```
7174

7275
docking/viewports 源码来自上游 docking tag(`compat.imgui 1.92.8-docking`,主线超集——特性关闭时行为与主线一致)。需 mcpp ≥ 0.0.47。

0 commit comments

Comments
 (0)