https://github.com/jenjinengine/toasty
A Dear ImGui notification system for Jenjin
https://github.com/jenjinengine/toasty
dear-imgui notifications
Last synced: 5 months ago
JSON representation
A Dear ImGui notification system for Jenjin
- Host: GitHub
- URL: https://github.com/jenjinengine/toasty
- Owner: JenjinEngine
- License: mit
- Created: 2024-10-17T23:42:38.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-17T23:45:40.000Z (over 1 year ago)
- Last Synced: 2025-04-05T17:37:38.104Z (11 months ago)
- Topics: dear-imgui, notifications
- Language: C++
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Toasty
A Dear ImGui notification system.
## Usage
```cpp
while (!glfwWindowShouldClose(window)) {
glfwPollEvents();
ImGui_ImplGlfw_NewFrame();
ImGui_ImplOpenGL3_NewFrame();
ImGui::NewFrame();
ImGui::ShowDemoWindow();
ImGui::Begin("Toasted demo");
if (ImGui::Button("Show toast")) {
ImGui::NewToast(Toasty::ToastType::Info, "Hello, world!");
}
ImGui::End();
// Render notifications
ImGui::ToastedRender();
ImGui::Render();
ImGui_ImplOpenGL3_RenderDrawData(ImGui::GetDrawData());
glfwSwapBuffers(window);
}
```
## License
MIT