Question on rendering! #6414
Closed
capslocknanda
started this conversation in
Build/Link/Run/Fonts issues ONLY!
Replies: 1 comment 2 replies
-
I am sorry but nothing in your question is specific to dear imgui, this is the wrong forum to ask this. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Thank you for sharing this awesome work.
I am rendering this figure using gl4 and GLFW and glad,
and here is my main loop to render this:
int main()
{
// glfw: initialize and configure
// ------------------------------
glfwInit();
if (!glfwInit())
{
// Handle initialization error
std::cout << "Failed to initialize GLFW" << std::endl;
}
#ifdef APPLE
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE);
#endif
}
How can I render the same in a sub-window in another of my program which uses Imgui with SDL and opengl,
I am currently doing this :
void render3DPose(cv::Mat &PoseKeypoint, std::vector<std::vector> edgesList, GLuint rbo,
GLuint framebuffer, GLuint texture) {
ImGui::Begin("Rendering 3D Pose");
ImGui::SetWindowPos(ImVec2(380, 140));
ImVec2 windowSize = ImVec2(450, 550);
ImVec2 size = ImVec2(ImGui::GetWindowWidth(), ImGui::GetWindowHeight());
ImGui::SetWindowSize("Rendering 3D Pose", windowSize);
}
I am using the same glm camera parameters, but ending up getting this:
Any help will be appreciated. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions