Hi,
Is there a way of safely enabling antialiasing in Xith, if not, is there a posiibility to enable multisampling in underlaying jogl layer or something like this…
Vlad
Hi,
Is there a way of safely enabling antialiasing in Xith, if not, is there a posiibility to enable multisampling in underlaying jogl layer or something like this…
Vlad
Short answer is YES for multisampling.
Antialiasing is a renderer-specific setting and should be enabled during CanvasPeerImpl construction.
I do this by providing my own GLCapabilitiesChooser.
Yuri
Yuri, how exactly do you do the GLCapabilitiesChooser?
I can’t find how to write the CanvasPeerImpl code…
Could you send an example?
Thanks in advance
Alonzo
Hi,
This is rather trivial. The sample code is:
AAGLCapabilitiesChooser aaChooser = new AAGLCapabilitiesChooser();
RenderPeerImpl renderPeer = new RenderPeerImpl();
GLCapabilities caps = new GLCapabilities();
caps.setDepthBits(24);
caps.setStencilBits(0);
canvasPeer = (CanvasPeerImpl) renderPeer.makeCanvas(bevelPanel1, bevelPanel1.getWidth(), bevelPanel1.getHeight(), 16, false, caps, aaChooser);
AAGLCapabilitiesChooser is a custom chooser class. I think my implementation will not fit anybody’s needs because of it is very application-specific and has a lot of hardware assumptions.
Yuri