Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,17 @@
## 快速开始

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

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

```toml
[dependencies]
imgui = "0.0.5"
imgui = "0.0.6"
```

```cpp
Expand Down Expand Up @@ -66,7 +69,7 @@ int main() {

```toml
[dependencies]
imgui = { version = "0.0.5", features = ["docking-full"] }
imgui = { version = "0.0.6", features = ["docking-full"] }
```

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