Jomixedyu / ImGuiToolTemplate

Template for quickly creating imgui applications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ImGuiToolTemplate

UIMain.cpp

void UIMain_WindowInit(char* title, int* width, int* height)
{
    ::strcpy_s(title, 256, __PROJECT_NAME);
    *width = 400;
    *height = 600;
}

void UIMain_StyleInit()
{
    ImGui::StyleColorsDark();
    ImGuiStyle& style = ImGui::GetStyle();
    style.FrameRounding = 12;
}

void UIMain_OnGui()
{
    ImGui::Text("世界,你好");
    if (ImGui::Button("Hello world!", {-1,0}))
    {

    }
}

void UIMain_Terminate()
{
}

About

Template for quickly creating imgui applications.

License:MIT License


Languages

Language:C++ 84.2%Language:C 15.4%Language:Objective-C 0.3%Language:CMake 0.1%