imgui sort of works!
This commit is contained in:
@@ -15,8 +15,8 @@
|
||||
#include <cstdio>
|
||||
#include <thread>
|
||||
|
||||
#include <backends/imgui_impl_vulkan.h>
|
||||
#include <imgui.h>
|
||||
#include "imgui-helper.h"
|
||||
#include "imgui.h"
|
||||
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
@@ -226,12 +226,7 @@ namespace Game
|
||||
LoadMesh(Models[1], "models/zurg.gltf");
|
||||
|
||||
Materials[0] = Material::LoadFromShader("vert", "frag", Textures[0].Handle, Textures[0].SamplerHandle);
|
||||
|
||||
ImGui_ImplVulkan_InitInfo imguiVkInit;
|
||||
|
||||
// TODO
|
||||
// ImGui_ImplVulkan_Init(&imguiVkInit);
|
||||
// ImGui_ImplVulkan_CreateFontsTexture();
|
||||
imguiCreate();
|
||||
|
||||
if (!GetInstance().IsInitialized)
|
||||
{
|
||||
@@ -241,6 +236,8 @@ namespace Game
|
||||
|
||||
void GameRendering::Update()
|
||||
{
|
||||
imguiBeginFrame(0, 0, 0, 0, 100, 100);
|
||||
ImGui::ShowDemoWindow();
|
||||
SharedData& shared = GetShared();
|
||||
|
||||
// Reload shaders if necessary
|
||||
@@ -306,6 +303,7 @@ namespace Game
|
||||
bgfx::dbgTextPrintf(
|
||||
1, 2 + i, 0x0F, "%s Max: %.3fs", PerfCounterNames[i], shared.Window.PerfCounters[i].GetMax());
|
||||
}
|
||||
imguiEndFrame();
|
||||
|
||||
START_PERF();
|
||||
bgfx::frame();
|
||||
@@ -314,6 +312,7 @@ namespace Game
|
||||
|
||||
void GameRendering::Shutdown()
|
||||
{
|
||||
imguiDestroy();
|
||||
bgfx::shutdown();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user