Skip to content
This repository has been archived by the owner on Oct 9, 2018. It is now read-only.

Latest commit

 

History

History
20 lines (17 loc) · 615 Bytes

README.md

File metadata and controls

20 lines (17 loc) · 615 Bytes

AtomicImGUI

imgui integration for AtomicGameEngine.

How to use

// Create subsystem
auto imgui = new Atomic::ImGUI(context_);
// Register a font (optional, default font is always created)
const unsigned short range[] = {ICON_MIN_FA, ICON_MAX_FA, 0};
imgui->AddFont("UI/fontawesome-webfont.ttf", 0, true, range);
// Draw GUI
SubscribeToEvent(E_IMGUIFRAME, [&](StringHash, VariantMap&) {
        ImGui::Begin("Example");
        ImGui::Text("%s Search", ICON_FA_SEARCH);
        ImGui::End();
});