Hello everyone,
I'm currently integrating in osgViewer the transparency an I'm
looking for some advices.
I started with the code published by Chris Hidden on the mailing
list, and modified it a little bit in order to be able to choose
between color transparency (LWA_COLORKEY), or alpha transparency
(LWA_ALPHA) or both. The probleme is that it is, for the moment,
done during the window creation. What I wanted is to be able to
adapt the LWA_COLORKEY whenever the user wants, same for LWA_ALPHA.
My questions to the community :
- Where would be the right place to make these changes (as I
need to be able to recover the window handle) ?
- Do you think that it could be interesting to be able to switch
from transparent to non transparent during execution ?
- Should the color, alpha and activation boolean be added to the
traits and be modified through GraphicsWindow class ?
- Has someone already implemented the transparency for another
OS / Windowing System, and if yes could we try to unify the way
it is done ?
Sorry for all these questions, but as it is my first contribution
try, I want to be sure to make no mistake !
Cheers,
Christian
--
SCHULTE Christian
Ingénieur Recherche
Responsable du Laboratoire de Simulation
ONERA - DCSD/PSEV
Département Commande des Systèmes et Dynamique du Vol
ONERA - Centre de Salon de Provence
BA 701
13661 SALON AIR Cedex - France
Tel :04.90.17.01.45