|
@@ -614,6 +614,7 @@ int main(int, char**)
|
|
setup_vulkan(window);
|
|
setup_vulkan(window);
|
|
|
|
|
|
// Setup ImGui binding
|
|
// Setup ImGui binding
|
|
|
|
+ ImGuiIO& io = ImGui::GetIO(); (void)io;
|
|
ImGui_ImplGlfwVulkan_Init_Data init_data = {};
|
|
ImGui_ImplGlfwVulkan_Init_Data init_data = {};
|
|
init_data.allocator = g_Allocator;
|
|
init_data.allocator = g_Allocator;
|
|
init_data.gpu = g_Gpu;
|
|
init_data.gpu = g_Gpu;
|
|
@@ -623,6 +624,7 @@ int main(int, char**)
|
|
init_data.descriptor_pool = g_DescriptorPool;
|
|
init_data.descriptor_pool = g_DescriptorPool;
|
|
init_data.check_vk_result = check_vk_result;
|
|
init_data.check_vk_result = check_vk_result;
|
|
ImGui_ImplGlfwVulkan_Init(window, true, &init_data);
|
|
ImGui_ImplGlfwVulkan_Init(window, true, &init_data);
|
|
|
|
+ //io.NavFlags |= ImGuiNavFlags_EnableKeyboard; // Enable Keyboard Controls
|
|
|
|
|
|
// Setup style
|
|
// Setup style
|
|
ImGui::StyleColorsDark();
|
|
ImGui::StyleColorsDark();
|
|
@@ -635,7 +637,6 @@ int main(int, char**)
|
|
// - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call.
|
|
// - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call.
|
|
// - Read 'misc/fonts/README.txt' for more instructions and details.
|
|
// - Read 'misc/fonts/README.txt' for more instructions and details.
|
|
// - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ !
|
|
// - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ !
|
|
- //ImGuiIO& io = ImGui::GetIO();
|
|
|
|
//io.Fonts->AddFontDefault();
|
|
//io.Fonts->AddFontDefault();
|
|
//io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f);
|
|
//io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f);
|
|
//io.Fonts->AddFontFromFileTTF("../../misc/fonts/Cousine-Regular.ttf", 15.0f);
|
|
//io.Fonts->AddFontFromFileTTF("../../misc/fonts/Cousine-Regular.ttf", 15.0f);
|