Hi Marshal,
Sorry to ask too many questions But I dont seem to still get a transparent background working . I tried playing around with renderer class and the Osr class where the canvas is getting created , and at one point I tried to do away with the Cef Renderer class to see if nothing comes up but I still get this black canvas but I have no idea y .. [ i also set the composite graphics on my canvas like below ]
- Code: Select all
Composite urComposite = g2.getComposite();
g2.setComposite(AlphaComposite.getInstance(
AlphaComposite.SRC_OVER, 0));
g2.fillRect(0,0,browser_rect_.width , browser_rect_.height);
g2.setComposite(urComposite);
I also tried setting gl2.glClearColor(0.0f, 0.0f, 0.0f, 0.0f); but the alpha from here doesnt really do anything , so if I put gl2.glClearColor(0.0f, 0.0f, 0.0f, 0.0f); or gl2.glClearColor(0.0f, 0.0f, 0.0f, 1.0f) ; I still get the same output... [ at this point i dint paint anything on the canvas]
So even if i remove the painting , I get this black screen in my application which I had no idea to get off.
Do u have any pointers ? I am completely lost at this point
Once again sorry to ask too many questions.
UPDATE :I exploited the GLJPanel inplace of a Canvas and also tried GLJPanel.setOpaque(false) and still end up with the same result.