sdl - How do you create a transparent window using dispmanx on Raspberry Pi? -
i'm working on slideshow app , using sdl 1.2 using custom dispmanx backend (https://github.com/vanfanel/sdl12-kms-dispmanx) pygame create overlays on top of omxplayer.
it works , layers correctly, can't seem make transparent canvas in dispmanx without making objects transparent well. understanding pygame cannot handle , sdl handle transparency between dispmanx layers.
my goal hardware accelerated transparent canvas size of screen above omxplayer can draw on.
i suspect there must method other using alpha settings in vc_dispmanx_element_add this? xbmc uses dispmanx , can opaque overlays above omxplayer, must possible. i've looked @ vc_dispmanx_display_set_background, seems take rgb , not alpha.
rather creating transparent window u take screenshot of window , use background. used pyscreenshot take image (though there other options) and
os.environ['sdl_video_window_pos']="0,0"
to make sure window in right spot every time, weakness window no longer transparent if changes behind it
Comments
Post a Comment