File tree Expand file tree Collapse file tree
cefpython/cef1/windows/binaries Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616
1717# TODO: fix the blurriness of the browser when window is resized.
1818
19+ TEST_TRANSPARENCY = False
20+
1921import platform
2022if platform .architecture ()[0 ] != "32bit" :
2123 raise Exception ("Only 32bit architecture is supported" )
3739loadPrcFileData ("" , "Panda3D example" )
3840loadPrcFileData ("" , "fullscreen 0" )
3941loadPrcFileData ("" , "win-size 1024 768" )
42+ from pandac .PandaModules import TransparencyAttrib
4043
4144import direct .directbase .DirectStart
4245from panda3d .core import *
@@ -105,11 +108,15 @@ def __init__(self):
105108 node = cardMaker .generate ()
106109 self .nodePath = render2d .attachNewNode (node )
107110 self .nodePath .setTexture (self .texture )
111+ if TEST_TRANSPARENCY :
112+ self .nodePath .setTransparency (TransparencyAttrib .MAlpha )
108113 self .nodePath .setHpr (0 , 0 , 5 )
109114
110115 windowHandle = base .win .getWindowHandle ().getIntHandle ()
111116 windowInfo = cefpython .WindowInfo ()
112117 windowInfo .SetAsOffscreen (windowHandle )
118+ if TEST_TRANSPARENCY :
119+ windowInfo .SetTransparentPainting (True )
113120
114121 # By default window rendering is 30 fps, let's change
115122 # it to 60 for better user experience when scrolling.
You can’t perform that action at this time.
0 commit comments