Login  Register

Re: JOGL 2 support for Ardor3D, JMonkeyEngine 3, jzy3d and NiftyGUI

Posted by Sven Gothel on Sep 20, 2011; 9:36am
URL: https://forum.jogamp.org/JOGL-2-support-for-Ardor3D-JMonkeyEngine-3-jzy3d-and-NiftyGUI-tp1706747p3351539.html

On Tuesday, September 20, 2011 11:16:53 AM gouessej [via jogamp] wrote:

>
> Hi
>
> I implemented one of those wrappers (JoglNewtMouseWrapper) before falling
> asleep, I used the previous one (AwtMouseWrapper) as an example, it seems to
> be the right way to do it :) The one I implemented wraps NEWT events
> directly in Ardor3D events in order to allow the use of this window without
> AWT on Android for example.
>
> I'm going to implement the class JoglNewtAwtCanvas which uses NewtCanvasAWT
> with existing wrappers (AwtMouseWrapper, AwtKeyboardWrapper, ...). If I do
> so, I won't need (yet) NewtAWTEventFactory. If I need it, I will implement
> it.
>
> If you think it is a bad idea, let me know. As the source code is on
> Sourceforge, you can have a look at it.

Great stuff. You are right, lets do this step by step.
When you have it 'merge/review ready' please open a new thread about it here.
(This thread is already pretty huge :)

Then we see how to best migrate it to NEWT. Cool.

>
> I can at least find the native calls to change the mouse cursor and to move
> the mouse pointer on several platforms, would it be useful for you?

Of course.
I will add it to the Window .. and hopefully thats about it.
Sure, the 'grab' feature may need some special handling, ie shutdown callback.
At least we have to ensure that it won't mess with the whole desktop :)
As above - pls send these code snippets in a new thread in this forum.
Thank you.

>
> In Ardor3D, it is possible to change the icon of the window. Would such an
> option be difficult to implement in NEWT?
If we have your above native functions .. and know how they work .. no :)
Just replace difficult with time consuming .. I guess.
Ie we would need to find a common bitmap format I guess.
Lets do this after we were able to turn it on/of + grab-feature.

>
> Thanks for your help.
Thank you.

> Best regards.

Cheers, Sven