Repository navigation
ImGuiIntegration: make ImFontAtlas texture accessible - #61
rune-scape wants to merge 2 commits into
Conversation
Codecov Report
@@ Coverage Diff @@
## master #61 +/- ##
==========================================
- Coverage 74.55% 73.97% -0.58%
==========================================
Files 21 21
Lines 900 903 +3
==========================================
- Hits 671 668 -3
- Misses 229 235 +6
Continue to review full report at Codecov.
|
mosra
left a comment
There was a problem hiding this comment.
Thank you (and extra thanks for writing the docs as well 👍).
One more thing -- could you do simplify the ternary condition we talked about? You mentioned it worked well in your last comment in #60. (To be extra sure, if you could test that also an ImGuiIntegration::image() widget still work as expected after that change, that'd be great.)
| * | ||
| * @return Reference to the @cpp GL::Texture2D @ce in @cpp ImFontAtlas @ce | ||
| */ | ||
| GL::Texture2D& getAtlasTexture(); |
There was a problem hiding this comment.
Could this be just atlasTexture()? Magnum doesn't use get prefixes anywhere else.
|
Merged as b3c65b9, thank you! :) |
|
btw i have been testing with the ternary statement simplified, and everything works |
|
There is a tiny bug in here: When the Context is moved, the pointer to I will follow up with a tiny PR. |
Fixes #60