conrod icon indicating copy to clipboard operation
conrod copied to clipboard

Setting background transparency with glium backend

Open stevensonmt opened this issue 6 years ago • 2 comments

I'm trying to set the background of the list_select example to a transparent color. On lines 112 - 114 I have

widget::Canvas::new()
  .color(conrod_core::color::TRANSPARENT)
  .set(ids.canvas, ui);

The background remains opaque, however. What is the correct way for setting the background alpha?

stevensonmt avatar Oct 02 '19 16:10 stevensonmt

You may also need to build the glutin window with the .with_transparency(true) method so that the window does not have an opaque background (which I believe is the default).

mitchmindtree avatar Oct 03 '19 11:10 mitchmindtree

That gives me an error. No pixel format available.

I'm using X11 on Manjaro Linux with OpenGL version 3.0 Mesa 19.1.3. Getting the glium::glutin::GL_CORE for the app returns Specific(OpenGl, (3, 2)). Not sure if that is relevant.

stevensonmt avatar Oct 03 '19 14:10 stevensonmt