File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,13 +23,12 @@ class ImGuiIntegration {
2323 ImGui::CreateContext ();
2424
2525 ImGuiIO& io = ImGui::GetIO ();
26- io.ConfigFlags |= ImGuiConfigFlags_DockingEnable;
2726 io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard;
2827
2928 ImGui_ImplSDL3_InitForSDLGPU (window);
3029
3130 ImGui_ImplSDLGPU3_InitInfo initInfo{};
32- initInfo.GpuDevice = device->nativeDevice ();
31+ initInfo.Device = device->nativeDevice ();
3332 initInfo.ColorTargetFormat = SDL_GetGPUSwapchainTextureFormat (
3433 device->nativeDevice (), window);
3534
@@ -56,7 +55,7 @@ class ImGuiIntegration {
5655 void prepareRender (RHI ::CommandBuffer* cmd) {
5756 if (!m_initialized) return ;
5857 ImGui::Render ();
59- ImGui_ImplSDLGPU3_PrepareDrawData (ImGui::GetDrawData (), cmd->nativeHandle ());
58+ Imgui_ImplSDLGPU3_PrepareDrawData (ImGui::GetDrawData (), cmd->nativeHandle ());
6059 }
6160
6261 void endFrame (RHI ::CommandBuffer* cmd) {
Original file line number Diff line number Diff line change @@ -149,13 +149,6 @@ class SceneEditor {
149149 }
150150
151151 void setupDockingLayout () {
152- ImGuiID dockspaceId = ImGui::DockSpaceOverViewport (
153- 0 ,
154- ImGui::GetMainViewport (),
155- ImGuiDockNodeFlags_PassthruCentralNode);
156-
157- // Only setup once
158- if (m_dockingSetup) return ;
159152 m_dockingSetup = true ;
160153 }
161154
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ int main(int, char**) {
4141 return 1 ;
4242 }
4343
44- Caffeine::Assets::AssetManager assetManager;
44+ Caffeine::Assets::AssetManager assetManager ( nullptr , " assets " ) ;
4545 Caffeine::ECS ::World world;
4646 Caffeine::Render::Camera2D editorCamera;
4747
You can’t perform that action at this time.
0 commit comments