Debug verbosity, modified README
This commit is contained in:
parent
809a5abcd5
commit
749eaa4acc
3 changed files with 136 additions and 92 deletions
|
|
@ -1,5 +1,4 @@
|
|||
//Demo executable based on GLFW
|
||||
|
||||
#define IMGUI_IMPLEMENTATION
|
||||
#define GL_SILENCE_DEPRECATION
|
||||
|
||||
|
|
@ -40,7 +39,7 @@ int main(int, char**) {
|
|||
#endif
|
||||
|
||||
// Create window with graphics context
|
||||
GLFWwindow* window = glfwCreateWindow(1280, 720, "Dear ImGui GLFW+OpenGL3 example", NULL, NULL);
|
||||
GLFWwindow* window = glfwCreateWindow(1280, 720, "File Picker Demo", NULL, NULL);
|
||||
if (window == NULL)
|
||||
return 1;
|
||||
glfwMakeContextCurrent(window);
|
||||
|
|
@ -76,12 +75,21 @@ int main(int, char**) {
|
|||
|
||||
// 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!).
|
||||
static wchar_t path[MAX_PATH];// = malloc(MAX_PATH * sizeof(char));
|
||||
static int state;
|
||||
static int debugVerbosity = fp::DebugVerbosity::DIRECTORY | fp::DebugVerbosity::VOLUME | fp::DebugVerbosity::EXTENSION;
|
||||
//debugVerbosity = 0;
|
||||
static bool windowOpen = true;
|
||||
fp::setDebugInfo(debugVerbosity);
|
||||
if(windowOpen)
|
||||
fp::renderFilePicker(&path[0], &windowOpen, 0);
|
||||
state = fp::renderFilePicker(&path[0], &windowOpen, 0);
|
||||
|
||||
if (show_demo_window)
|
||||
ImGui::ShowDemoWindow(&show_demo_window);
|
||||
//if (show_demo_window)
|
||||
ImGui::SetNextWindowSize(ImVec2(500.0f, 500.0f));
|
||||
ImGui::Begin("Values", NULL, 0);
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, 0.0f);
|
||||
ImGui::PopStyleVar(1);
|
||||
ImGui::End();
|
||||
//ImGui::ShowDemoWindow(&show_demo_window);
|
||||
|
||||
// Rendering
|
||||
ImGui::Render();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue