Closed andreamancuso closed 3 weeks ago
The pull request introduces several changes across multiple files in the dear-imgui
package. Key modifications include the adjustment of the .gitignore
file to track .png
files, the restructuring of CMakeLists.txt
to manage source files and dependencies, and enhancements to various classes for improved image handling and rendering. Notable changes involve conditional compilation for Emscripten, the addition of new member variables and methods, and the introduction of a new JSON configuration for package management.
File Path | Change Summary |
---|---|
packages/dear-imgui/assets/.gitignore |
Removed entry for ignoring all .png files, allowing them to be tracked by Git. |
packages/dear-imgui/cpp/app/CMakeLists.txt |
Added three source files (reactimgui.cpp , imgui_renderer.cpp , implot_renderer.cpp ) to REACT_IMGUI_SRC and removed them from the end of the variable. |
packages/dear-imgui/cpp/app/include/imgui_renderer.h |
Moved m_glfwWindow from protected to public; updated LoadTexture method signatures based on Emscripten; added HandleNextImageJob method. |
packages/dear-imgui/cpp/app/include/reactimgui.h |
Added two member variables: m_imageToTextureMap and m_imageJobs . |
packages/dear-imgui/cpp/app/include/texture_helpers.h |
Introduced new structure ImageJob with members widgetId and url . |
packages/dear-imgui/cpp/app/include/widget/image.h |
Added methods for Emscripten: QueueFetchImage , HandleFetchImageSuccess , and HandleFetchImageFailure ; updated FetchImage method signature. |
packages/dear-imgui/cpp/app/src/imgui_renderer.cpp |
Added HandleNextImageJob method; updated LoadTexture to differentiate Emscripten and non-Emscripten implementations. |
packages/dear-imgui/cpp/app/src/reactimgui.cpp |
Added OpenGL ES header; reinstated widget/image.h inclusion for Emscripten; modified SetUpElementCreatorFunctions to include di-image widget initialization. |
packages/dear-imgui/cpp/app/src/widget/checkbox.cpp |
Added include for nlohmann/json.hpp ; modified Checkbox::Patch to update label from JSON. |
packages/dear-imgui/cpp/app/src/widget/image.cpp |
Updated rendering logic in Render method based on platform; modified HandleInternalOp to call FetchImage or QueueFetchImage based on platform. |
packages/dear-imgui/cpp/node/CMakeLists.txt |
Added dependencies for OpenGL, ada, and Stb; updated generator settings and source file inclusion. |
packages/dear-imgui/cpp/node/hello.cpp |
Implemented Singleton pattern in Runner class; renamed run() to init() ; updated methods to interact with the Singleton instance. |
packages/dear-imgui/cpp/node/vcpkg.json |
Introduced new package configuration for reactdearimgui with dependencies on stb , ada-url , and opengl-registry . |
packages/dear-imgui/ts/.gitignore |
Added entry to ignore imgui.ini file. |
packages/dear-imgui/ts/node-imgui/TradingGuiDemo/CryptoSymbolPairs/CryptoSymbolPair.tsx |
Updated image URLs in CryptoSymbolPair component to relative paths and removed commented-out code. |
packages/dear-imgui/ts/node-imgui/index.tsx |
Changed assetsBasePath from an absolute Windows path to a relative path. |
.gitignore
file related to asset management, specifically concerning image files.🐰 In the garden where images bloom,
PNGs now tracked, no more gloom.
With textures and jobs, we hop along,
Rendering dreams, where we belong.
Emscripten's path, so bright and clear,
In the code we dance, with joy and cheer! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Failed conditions
23.9% Duplication on New Code (required ≤ 3%)
E Reliability Rating on New Code (required ≥ A)
See analysis details on SonarCloud
Catch issues before they fail your Quality Gate with our IDE extension SonarLint
RenderDoc support:
Summary by CodeRabbit
Summary by CodeRabbit
New Features
ReactImgui
andImGuiRenderer
classes, including support for image job processing and texture management.CryptoSymbolPair
component for better resource management.Bug Fixes
Documentation
.gitignore
files to manage tracked files effectively.Chores