|
|
@ -2,7 +2,6 @@ |
|
|
|
#include <iostream>
|
|
|
|
#include <assert.h>
|
|
|
|
#include <imgui.h>
|
|
|
|
#include <nfd.h>
|
|
|
|
#include "gui.h"
|
|
|
|
#include "project.h"
|
|
|
|
|
|
|
@ -51,7 +50,7 @@ void Gui::render_project_overlay() { |
|
|
|
|
|
|
|
void Gui::render_mmb_file() { |
|
|
|
if (ImGui::MenuItem("Load project", "CTRL+O")) { |
|
|
|
nfdchar_t *out_path = nullptr; |
|
|
|
/*nfdchar_t *out_path = nullptr;
|
|
|
|
nfdresult_t result = NFD_OpenDialog(NULL, NULL, &out_path); |
|
|
|
if (result == NFD_OKAY) { |
|
|
|
// Load project
|
|
|
@ -61,7 +60,7 @@ void Gui::render_mmb_file() { |
|
|
|
free(out_path); |
|
|
|
} else if (result == NFD_ERROR) { |
|
|
|
std::cout << "Error in filepicker: " << NFD_GetError() << '\n'; |
|
|
|
} |
|
|
|
}*/ |
|
|
|
} |
|
|
|
|
|
|
|
ImGui::Separator(); |
|
|
@ -86,7 +85,7 @@ void Gui::render_mmb_view() { |
|
|
|
|
|
|
|
void Gui::render_mmb_debug() { |
|
|
|
ImGui::MenuItem("Profiler"); |
|
|
|
|
|
|
|
|
|
|
|
if (ImGui::MenuItem("Reload shaders", "CTRL+R")) { |
|
|
|
if (state->current_project != nullptr) { |
|
|
|
if (state->current_project->scene_loaded) { |
|
|
|