cef off-screen rendering - example

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Re: cef off-screen rendering - example

Postby qwertzui11 » Fri Feb 27, 2015 3:01 am

when u call CefWindowInfo::SetAsWindowless set the second parameter to true, to enable transparency.
Now cef passes the alpha values u set in ur background colour or image on to the RenderHandler::OnPaint
For documentation checkout
https://code.google.com/p/chromiumembed ... ?r=506#106
the colour values come as BGRA.
I know that works, because I'm using it myself ;-)

In DX use a texture with an alpha channel and enable transparency there too.

Have fun
Markus
qwertzui11
Newbie
 
Posts: 6
Joined: Sun Oct 06, 2013 6:09 am

Re: cef off-screen rendering - example

Postby Teotihuacan » Wed Oct 17, 2018 5:02 am

is there any example with shared texture approach? I mean that one https://bitbucket.org/chromiumembedded/ ... -mode/diff
Teotihuacan
Techie
 
Posts: 48
Joined: Sun Sep 09, 2018 6:23 am

Re: cef off-screen rendering - example

Postby magreenblatt » Thu Oct 18, 2018 1:12 pm

Teotihuacan wrote:is there any example with shared texture approach? I mean that one https://bitbucket.org/chromiumembedded/ ... -mode/diff

Please don't post on very old threads. There is an example in cefclient: https://bitbucket.org/chromiumembedded/ ... ts/1e6b870
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Previous

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 45 guests