Skip to content

How is the Glfw transparent window #36

Closed Answered by coderedart
GeneralBombe asked this question in Q&A
Discussion options

You must be logged in to vote

You are doing everything correct. When I copy paste your example code into an empty project, transparency works fine for me.

If its any help, you can look at the glfw code at https://github.com/coderedart/egui_overlay/blob/master/crates/egui_window_glfw_passthrough/src/lib.rs#L122
The only differences are:

  1. I don't set any context version or opengl profile hints.
  2. I don't use primary monitor when creating a window
  3. I specifically set opengl API hint (vulkan transparency is way more messy than openGL)

Its hard to pinpoint any issues without knowing your platform details.
For Microsoft Windows, there's often issues with drivers. Another similar overlay has a decent troubleshooting guide for…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by GeneralBombe
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants