Updated ImGui Widgets (markdown)

debater-coder 2022-01-28 13:41:35 +11:00
parent 5ce9b09649
commit ed8e5335ce

@ -2,7 +2,10 @@
## ImGui::Text
Draws formatted text. The format options are like `printf`.
### Function Signature
```c++
IMGUI_API void Text(const char* fmt, ...)
```
### Example
```c++
ImGui::Text("Hello world %f", 42);
@ -11,6 +14,10 @@ ImGui::Text("Hello world %f", 42);
# Main
## ImGui::Button
Draws a button and returns whether it was clicked or not.
### Function Signature
```c++
IMGUI_API bool Button(const char* label, const ImVec2& size = ImVec2(0, 0));
```
### Example
```c++
if (ImGui::Button("Button"))