|
|
Re: SWT equivalent of AWT Component.addNotify() [message #674830 is a reply to message #674816] |
Sat, 28 May 2011 15:15   |
Eclipse User |
|
|
|
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 15:16] by Moderator
|
|
|
Re: SWT equivalent of AWT Component.addNotify() [message #871391 is a reply to message #674830] |
Sun, 13 May 2012 01:39  |
Eclipse User |
|
|
|
Hello!
Have you succeeded in using jME3 inside SWT's GLCanvas? I'm new to Eclipse plugin/RCP and trying to do exactly the same, building some software visualization plugin and using jme3 for rendering. If you have succeeded in your effort, would you mind providing any guidance/help on how to quickly achieve this?
Thank you very much,
Mujtaba
|
|
|
Powered by
FUDForum. Page generated in 0.02555 seconds