Login  Register

Re: Native Windows with basic features

Posted by Sven Gothel on May 14, 2010; 10:39am
URL: https://forum.jogamp.org/Native-Windows-with-basic-features-tp816127p817013.html

On Friday, May 14, 2010 02:08:01 Christian Catchpole [via jogamp] wrote:

>
> Michael Bien suggested I post this question here:
>
> I'm building a data model visualization app.  I want the app to be an OpenGL
> view but I'd like the app to have all the standard features that would make
> it a "real application", using native windows if possible.
>
> - windowed view / fullscreen (including screen selection) / maximize (full
> screen without blanking other screens)
> - resizable windows
> - application icon / title control
> - key and mouse inputs
I guess NEWT supports that right now.

>
> nice to haves
> - drop down menus
This is something we cannot support, since it would fight NEWT's purpose
of being just a simple windowing toolkit only.
However, it would be possible to add these high level features directly in Java
utilizing NEWT/JOGL. One may implement these using text rendering,
undecorated windows or z stacked GL objects / overlays.

Actually the idea of NEWT is that most features are supported by the
underlying windowing toolkit, especially mobile platforms.
A project using NEWT may want to implement UI elements by its own.

A feature which might be of interest here is to integrate drag&drop into NEWT ..

> - multiple windows / displays
NEWT supports that.

>
> In the past i could do all of these using SWT + LWJGL.  But it seems like
> overkill to include SWT to get these.
>
> On principal I'd also like to not use AWT because they are not real windows
> and the performance problems documented on the JOGL site.

There is a new feature, overlaying a native NEWT window on top of an AWT component,
http://jogamp.org/deployment/jogl-next/javadoc_public/com/jogamp/newt/NewtFactory.html#createWindow%28java.lang.Object,%20com.jogamp.newt.Screen,%20javax.media.nativewindow.Capabilities,%20boolean%29

as well as writing all input even listeners AWT agnostic ..
http://jogamp.org/git/?p=jogl.git;a=commit;h=1ad8c39df6b097c80ba7a85badf555e7f669cc3f
http://jogamp.org/git/?p=jogl.git;a=blob;f=src/junit/com/jogamp/test/junit/jogl/demos/gl2/gears/TestGearsAWT.java;h=36146df58bcde14ebfa90fe7def7c5902dc78735;hb=1ad8c39df6b097c80ba7a85badf555e7f669cc3f
  line 80/81 :)

Well, the above is a bit new, but they will be enhanced as we go,
e.g. I want to map some of our demos using NEWT this way ..

However .. when you are about to cross the embedded device line,
you probably will face the needs of having using some UI (gadgets) implementation.

~Sven

>
> michael says: (all features should be already in or on the immediate TODO
> list, the only issue i see are the drop down menus.... not implemented yet)
>
> thanks,
> christian
>
>
> ______________________________________
> View message @ http://jogamp.762907.n3.nabble.com/Native-Windows-with-basic-features-tp816127p816127.html
> To start a new topic under jogamp, email [hidden email]
> To unsubscribe from jogamp, click http://jogamp.762907.n3.nabble.com/subscriptions/Unsubscribe.jtp?code=c2dvdGhlbEBqYXVzb2Z0LmNvbXw3NjI5MDd8MzkxNDI4MzU5
>

--
health & wealth
mailto:[hidden email] ; www  : http://www.jausoft.com ; pgp: http://www.jausoft.com/gpg/
land : +49 (471) 4707742 ; cell: +49 (151) 28145941
Timezone CET: PST+9, EST+6, UTC+1