|
|
Re: SWT equivalent of AWT Component.addNotify() [message #674830 is a reply to message #674816] |
Sat, 28 May 2011 19:15 |
Eclipse User Messages: 2 Registered: May 2011 |
Junior Member |
|
|
Hi Mauro, thanks for your quick reply!
Mauro Condarelli wrote on Sat, 28 May 2011 13:05
This method is called internally by the toolkit and should not be called
directly by programs.
What are You trying to do, exactly?
I'm writing a small software visualization tool as an eclipse plugin.
For the rendering, I want to use JMonkeyEngine3 which is a renowned framework for writing opengl apps in java.
Unfortunately JME3 has no support for SWT's GLCanvas, therefore I'm trying to implement it myself.
The framework supports rendering in a AWT canvas. What I'm doing is taking that code and adapt it to GLCanvas.
JME3 kicks off a separate thread dedicated to the rendering; they use addNotify() in order to start rendering
only when the canvas has become visible.
I need the counterpart of addNotify() in order to start rendering only when GLCanvas is visible (and the opengl context is therefore ready).
Mauro Condarelli wrote on Sat, 28 May 2011 13:05
Did You try yo use SWT-AWT bridge, for a starter?
I'd prefer not to because, at least for the first version, my target platform is OSX and I read that some issues can arise when using SWT-AWT on OSX
[Updated on: Sat, 28 May 2011 19:16] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.02679 seconds