Skip to content

JenjinEngine/Toasty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Toasty

A Dear ImGui notification system.

Usage

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

About

A Dear ImGui notification system for Jenjin

Topics

Resources

License

Stars

Watchers

Forks