You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
wrap the UI's .update args into S_UPDATE_PARAMETERS, require only the minimum (remove optional delta in secs, 1/60 by default), get rid of our IWindow & ICursor dependency from the UI, move ImGui::Render() from .update to .render, update examples_tests submodule
//! parameters which may change every frame, used with the .update call to interact with ImGuiIO; we require a very *required* minimum - if you need to cover more IO options simply get the IO with ImGui::GetIO() to customize them (they all have default values you can change before calling the .update)
29
+
structS_UPDATE_PARAMETERS
30
+
{
31
+
//! what we pass to ImGuiIO::AddMousePosEvent
32
+
nbl::hlsl::float32_t2 mousePosition,
33
+
34
+
//! main display size in pixels (generally == GetMainViewport()->Size)
35
+
displaySize;
36
+
37
+
//! Nabla events you want to be handled with the backend
//! Nabla ImGUI backend reserves this index for font atlas, any attempt to hook user defined texture within the index will cause runtime error [TODO: could have a setter & getter to control the default & currently hooked font texture ID and init 0u by default]
32
51
_NBL_STATIC_INLINE_CONSTEXPR auto NBL_FONT_ATLAS_TEX_ID = 0u;
33
52
34
-
//! update ImGUI internal state & cpu draw command lists, call it before this->render
ImGui::Render(); // note it doesn't touch GPU or graphics API at all, its an internal ImGUI call to update & prepare the data for rendering so we can call GetDrawData()
0 commit comments