Skip to content

ImGuiIntegration: add imageButton()#38

Closed
williamjcm wants to merge 4 commits intomosra:masterfrom
williamjcm:imgui-imagebutton
Closed

ImGuiIntegration: add imageButton()#38
williamjcm wants to merge 4 commits intomosra:masterfrom
williamjcm:imgui-imagebutton

Conversation

@williamjcm
Copy link
Contributor

Also adds the corresponding test in ImGuiWidgetsGLTest.

Since I tested with ImGui 1.68 WIP, which apparently needs some time to display stuff, I had to edit both ImGuiWidgetsGLTest and ImGuiContextGLTest to add some delay between the dummy first frame and the actual test frames.

Review and feedback are welcome!

This should prevent issues with Dear ImGui version 1.68 WIP and later.
Copy link
Owner

@mosra mosra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot! Just minor things.

@codecov-io
Copy link

codecov-io commented Feb 17, 2019

Codecov Report

Merging #38 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master     #38   +/-   ##
======================================
  Coverage    45.3%   45.3%           
======================================
  Files          13      13           
  Lines         415     415           
======================================
  Hits          188     188           
  Misses        227     227

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 384bd61...2deebd5. Read the comment docs.

And also fix imageButton()'s default background color.
@mosra mosra added this to the 2019.0b milestone Feb 17, 2019
@mosra
Copy link
Owner

mosra commented Feb 17, 2019

Merged as db791be, c715e73 and 62918a2. Thanks a lot! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

3 participants