delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2016/09/19/12:08:00

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Date: Mon, 19 Sep 2016 18:20:10 +0200 (CEST)
X-X-Sender: igor2 AT igor2priv
To: "Dave McGuire (mcguire AT neurotica DOT com) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
X-Debug: to=geda-user AT delorie DOT com from="gedau AT igor2 DOT repo DOT hu"
From: gedau AT igor2 DOT repo DOT hu
Subject: Re: [geda-user] [pcb-rnd] on IRIX - portability
In-Reply-To: <3403488a-52a6-bf29-9ca5-207dda4d5ecc@neurotica.com>
Message-ID: <alpine.DEB.2.00.1609191806330.7286@igor2priv>
References: <alpine DOT DEB DOT 2 DOT 00 DOT 1609170509090 DOT 7286 AT igor2priv> <3403488a-52a6-bf29-9ca5-207dda4d5ecc AT neurotica DOT com>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
MIME-Version: 1.0
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com


On Mon, 19 Sep 2016, Dave McGuire (mcguire AT neurotica DOT com) [via geda-user AT delorie DOT com] wrote:

>  For my own use, though, while I'm following pcb-rnd development with
> interest, the loss of transparency was a show-stopper for me.  I realize
> you don't want to deal with OpenGL (which is definitely the best way to
> do this), but isn't there a practical way to implement transparency
> without it?

I see the following options:

I think gtk/gdk doesn't offer out-of-the-box usable opacity/transparency 
with software render. This suggest we'd need to do something like "render 
everthing manually in memory using transparency, then copy the result into 
a gdk pixmap at the end". Sounds like a lot of work and slow code at the 
end. Unless I missed something looking at the APIs, this just wouldn't 
work.

The short term solution would be resurrecting the opengl code (through 
contribution or donation).

I don't plan migration to gtk3, so my long term plan is an sdl2 based HID, 
that will survive a gtk2 phase-out (I won't remove the gtk HID, but 
distros will stop delivering the required libraries sooner or later). As a 
side effect sdl2 has support for alpha channel both with and without 
opengl so it would be much easier to solve there. I plan to have optional 
transparency in the sdl HID. I don't know how good the opengl support in 
sdl2 is, but it might also solve the gl problem. There's no ETA on this 
project yet, it's a rathr big chunk. But as cschem needs a GUI too, and it 
will definitely be sdl2 too, it will happen sooner or later.

Regards,

Igor2

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019