Skip to content

C++20 starter template for GLFW/ImGui apps with vcpkg support, configurable with premake5.

Notifications You must be signed in to change notification settings

yuyoyuppe/cpp20_imgui_vcpkg_starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Create imgui-based apps using C++20 and vcpkg dependencies with ease.

Example

#include "imgui.h"

#include <ui/GlfwImguiWindow.hpp>

struct MainWindow : ui::GlfwImguiWindow {
    using GlfwImguiWindow::GlfwImguiWindow;

    bool show_demo_window = true;

    void onInit() override {
        auto & io = ImGui::GetIO();

        io.FontAllowUserScaling = true;
    }

    void onUpdate() override {
        if(show_demo_window)
            ImGui::ShowDemoWindow(&show_demo_window);
    }
};

int main(int, char **) {
    MainWindow window{"Main window"};
    window.run_until_exit();
    return 0;
}

About

C++20 starter template for GLFW/ImGui apps with vcpkg support, configurable with premake5.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published