Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
aiekick committed Nov 26, 2023
1 parent 44bc023 commit 8c008eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ImGuiFileDialog
8 changes: 6 additions & 2 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,8 @@ int main(int, char**) {
static ImGuiFileDialogFlags flags = ImGuiFileDialogFlags_Default;
static IGFD_ResultMode resultMode = IGFD_ResultMode_AddIfNoFileExt;

static IGFD::FileManager fileManager;

// Main loop
while (!glfwWindowShouldClose(window)) {
// Poll and handle events (inputs, window resize, etc.)
Expand All @@ -523,9 +525,11 @@ int main(int, char**) {
if (show_demo_window) ImGui::ShowDemoWindow(&show_demo_window);

// 2. Show a simple window that we create ourselves. We use a Begin/End pair to created a named window.
ImGui::Begin("imGuiFileDialog Demo"); // Create a window called "Hello, world!" and append into it.
ImGui::Begin("ImGuiFileDialog Demo"); // Create a window called "Hello, world!" and append into it.
{
ImGui::Text("imGuiFileDialog Demo %s : ", IMGUIFILEDIALOG_VERSION);
ImGui::Text("ImGuiFileDialog Demo : %s", IMGUIFILEDIALOG_VERSION);
ImGui::Text("FileSystem Interface : %s", fileManager.GetFileSystemName().c_str());

ImGui::Separator();

ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color
Expand Down

0 comments on commit 8c008eb

Please sign in to comment.