I am trying to use OpenVG to create a window with a transparent background. I've tried using BackgroundRGB but it isn't transparent.
Any help would be great.
I recompiled the library and in my program I set the background using:static VC_DISPMANX_ALPHA_T alpha = {
DISPMANX_FLAGS_ALPHA_FROM_SOURCE,
255, 0
};
And I now have a fully transparent background!backgroundRGB(0,0,0,0)
WindowOpacity() doesn't give you a proper fully transparent background with solid graphics, it changes the opacity of the entire OpenVG window so you can see what is behind it. At some point I'll put in an option to choose whether it uses the original per-pixel alpha or my modified single alpha value for entire window. I'm not sure if it's possible to alter it between the two methods once the window is open.1dot0 wrote: ↑Fri Aug 25, 2017 8:00 amhello,
if you use Paeryn's fork then you'll have additionally the function
void WindowOpacity(unsigned int alpha)
https://github.com/paeryn/openvg/
That works fine with my openVG on Jessie, but as I just read in the C++ sub-forum, openVG can not be installed properly on Scratch yet.
haha, yes, sure, StretchScratch?
Do you mean Stretch?
Code: Select all
-lGLESv2 -lEGLCode: Select all
-lbrcmGLESv2 -lbrcmEGL