Skip to content
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

Transparent ui fix #2693

Closed
wants to merge 1 commit into from
Closed

Transparent ui fix #2693

wants to merge 1 commit into from

Conversation

aiekick
Copy link
Contributor

@aiekick aiekick commented Jul 26, 2019

Hello,

i propose a fix about the transparancy of the ui when Glfw window is transparant

see this topic with example : https://discourse.dearimgui.org/t/imgui-with-transparent-window-glfw/299

@ocornut
Copy link
Owner

ocornut commented Jul 26, 2019

Could you provide minimal instructions to explore this issue within one of GLFW example?

@ocornut ocornut changed the title transparant ui fix Transparent ui fix Jul 26, 2019
@aiekick
Copy link
Contributor Author

aiekick commented Jul 27, 2019

you need the last release of GLFW who have support of transparant window.

after that you can set transparant use : glfwWindowHint(GLFW_TRANSPARENT_FRAMEBUFFER, GLFW_TRUE);

you see the background opaque because the default alpha value of clear_color is 1.0f

if you see the ui, wherever you have ui with alpha value less of 1.0f, you see the desktop ( like in the color picker by example) this is what my fix correct.

example_glfw_opengl3_2019-07-27_18-18-56

ocornut added a commit that referenced this pull request Feb 18, 2021
… accross all backends. (#2693, #2764, #2766, #2873, #3447, #3813, #3816)

Some of the viewport ideas from #2766 are not in there yet (e.g. Vulkan: setting compositeAlpha based on cap.supportedCompositeAlpha)
@ocornut
Copy link
Owner

ocornut commented Feb 18, 2021

Fixed by bda12e5 (had seven related issues, went through all the backends together).

(We will still need to work on better Backends and Multi-viewports support, e.g. #2766, #3213)

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

Successfully merging this pull request may close these issues.

2 participants