git.s-ol.nu ~forks/DiligentTools / 0aea746
A couple of minor updates to imgui Linux implementation assiduous 1 year, 1 month ago
2 changed file(s) with 14 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
4545
4646 #include "ImGuiImplLinuxX11.hpp"
4747
48 #include "DebugUtilities.hpp"
49
4850 namespace Diligent
4951 {
5052
103105 m_LastTimestamp = now;
104106 auto& io = ImGui::GetIO();
105107 io.DeltaTime = static_cast<float>(elapsed_ns.count() / 1e+9);
108
109 VERIFY(io.DisplaySize.x == static_cast<float>(RenderSurfaceWidth), "io.DisplaySize.x (",
110 io.DisplaySize.x, " does not match RenderSurfaceWidth (", RenderSurfaceWidth, ")");
111 VERIFY(io.DisplaySize.y == static_cast<float>(RenderSurfaceHeight), "io.DisplaySize.y (",
112 io.DisplaySize.y, " does not match RenderSurfaceHeight (", RenderSurfaceHeight, ")");
106113
107114 ImGuiImplDiligent::NewFrame(RenderSurfaceWidth, RenderSurfaceHeight, SurfacePreTransform);
108115 }
4444
4545 #include "ImGuiImplLinuxXCB.hpp"
4646
47 #include "DebugUtilities.hpp"
48
4749 namespace Diligent
4850 {
4951
108110 m_LastTimestamp = now;
109111 auto& io = ImGui::GetIO();
110112 io.DeltaTime = static_cast<float>(elapsed_ns.count() / 1e+9);
113
114 VERIFY(io.DisplaySize.x == static_cast<float>(RenderSurfaceWidth), "io.DisplaySize.x (",
115 io.DisplaySize.x, " does not match RenderSurfaceWidth (", RenderSurfaceWidth, ")");
116 VERIFY(io.DisplaySize.y == static_cast<float>(RenderSurfaceHeight), "io.DisplaySize.y (",
117 io.DisplaySize.y, " does not match RenderSurfaceHeight (", RenderSurfaceHeight, ")");
111118
112119 ImGuiImplDiligent::NewFrame(RenderSurfaceWidth, RenderSurfaceHeight, SurfacePreTransform);
113120 }