Skip to content

andreecy/ez-imgui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ez ImGui

C++ ImGui GLFW template project

Create C++ GUI App with ease.

Getting Started

We already made an app with imgui demo window implementation. Just build project and run the main executable.

Entry Point

Here are our entry point

// src/main.cpp
#include "App.h"
#include "DemoLayer.h"

int main(int, char **)
{
    // create application
    App::Application app;

    // add demo layer to app stack
    app.PushLayer(new DemoLayer());

    // run app
    app.Run();

    return 0;
}
// src/DemoLayer.h
#include "App.h"

// a layer class implementing App::Layer
class DemoLayer : public App::Layer
{
public:
    void ImGuiRender() override;
};
// src/DemoLayer.cpp
#include "DemoLayer.h"

// layer main loop called inside application layer stacks
void DemoLayer::ImGuiRender()
{
    // code imgui render stuff here
    ImGui::ShowDemoWindow();
}

About

C++ ImGui GLFW template project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages