-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update ImGui v1.90.9 #13392
base: development
Are you sure you want to change the base?
Update ImGui v1.90.9 #13392
Conversation
Note that once ready we will have to make a UI sanity to this change. |
5ea88b8
to
48807d1
Compare
@@ -124,11 +130,17 @@ int main(int argc, char * argv[]) try | |||
glDisable(GL_BLEND); | |||
|
|||
// Render the UI: | |||
ImGui_ImplGlfw_NewFrame(1); | |||
ImGui_ImplOpenGL3_NewFrame(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can abe placed at realsense_imgui.h right as a
push_new_frame
pop_new_frame
or something like this, helper funcs that will be used everywhere.
Thoughts?
@@ -146,7 +164,7 @@ class hdr_widgets { | |||
void render_widgets() { | |||
|
|||
//start a new frame of ImGui | |||
ImGui_ImplGlfw_NewFrame(1); | |||
ImGui_ImplGlfw_NewFrame(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we need all the other NEW / DESTROY methods?
@@ -47,10 +47,28 @@ class hdr_slider : public slider { | |||
ImGui::SetNextWindowPos(_position); | |||
//concate the name given with seq_id in order to make a unique name (uniqeness is needed for Begin()) | |||
std::string name_id = std::string(_name) + std::to_string(_seq_id); | |||
ImGuiStyle& style = ImGui::GetStyle(); | |||
ImVec4* colors = style.Colors; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need all this color settings that was not done before?
@@ -288,6 +303,7 @@ void render_ui(float w, float h, std::vector<filter_options>& filters) | |||
|
|||
ImGui::End(); | |||
ImGui::Render(); | |||
ImGui_ImplOpenGL3_RenderDrawData(ImGui::GetDrawData()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like not all examples use the same calls, right? or I m missing something
/* License: Apache 2.0. See LICENSE file in root directory. */ | ||
/* Copyright(c) 2024 Intel Corporation. All Rights Reserved. */ | ||
|
||
//Overloading imgui functions to accommodate realsense GUI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So we must include this header only after the IMGUI header?
62664f3
to
8b81f93
Compare
8b81f93
to
566398a
Compare
Traced on: [LRS-1129]