Jogamp
NativeWindow/NativeSurface Refactoring ; Added mouseClick NEWT/AWT unit test
authorSven Gothel <sgothel@jausoft.com>
Wed, 6 Oct 2010 14:04:06 +0000 (16:04 +0200)
committerSven Gothel <sgothel@jausoft.com>
Wed, 6 Oct 2010 14:04:06 +0000 (16:04 +0200)
commit018c7e8660dc0af68bd129be9af5094d04d0b431
treeac17156a48167f4a28e129adfc78b7c746aa6744
parent03416ffe040d50b96573930104a78933605ae40d
NativeWindow/NativeSurface Refactoring ; Added mouseClick NEWT/AWT unit test

NativeWindow/NativeSurface Refactoring
    - Using NativeSurface interface
    - NativeWindow extends NativeSurface, adds getLocationOnScreen(Point)
    - NativeWindow add: getParent()
    - NativeWindow/Surface: Removed 'invalidate()', use 'destroy()' if you must.
    - NullWindow -> ProxySurface impl NativeSurface
    - JOGL: Uses NativeSurface only.
        - GLDrawable.getNativeWindow() -> GLDrawable.getNativeSurface()

Added mouseClick NEWT/AWT unit test

JOGL:
    - GLAnimatorControl add: resetCounter()
    -

NEWT:
    - GLWindow counters: return GLWindow counters always
    - WindowImpl
        - requestFocus() wait until done
        - reparent: readded requestFocusImpl(true),
                    native impl skips java focusAction if reparented
    - X11Window: Add XRaiseWindow() in requestFocus()
91 files changed:
make/build-nativewindow.xml
make/scripts/tests.sh
src/jogl/classes/com/jogamp/audio/windows/waveout/TestSpatialization.java
src/jogl/classes/com/jogamp/opengl/impl/GLContextImpl.java
src/jogl/classes/com/jogamp/opengl/impl/GLDrawableFactoryImpl.java
src/jogl/classes/com/jogamp/opengl/impl/GLDrawableImpl.java
src/jogl/classes/com/jogamp/opengl/impl/GLPbufferImpl.java
src/jogl/classes/com/jogamp/opengl/impl/egl/EGLDrawable.java
src/jogl/classes/com/jogamp/opengl/impl/egl/EGLDrawableFactory.java
src/jogl/classes/com/jogamp/opengl/impl/egl/EGLOnscreenDrawable.java
src/jogl/classes/com/jogamp/opengl/impl/egl/EGLPbufferDrawable.java
src/jogl/classes/com/jogamp/opengl/impl/macosx/cgl/MacOSXCGLContext.java
src/jogl/classes/com/jogamp/opengl/impl/macosx/cgl/MacOSXCGLDrawable.java
src/jogl/classes/com/jogamp/opengl/impl/macosx/cgl/MacOSXCGLDrawableFactory.java
src/jogl/classes/com/jogamp/opengl/impl/macosx/cgl/MacOSXCGLGraphicsConfiguration.java
src/jogl/classes/com/jogamp/opengl/impl/macosx/cgl/MacOSXExternalCGLContext.java
src/jogl/classes/com/jogamp/opengl/impl/macosx/cgl/MacOSXOffscreenCGLDrawable.java
src/jogl/classes/com/jogamp/opengl/impl/macosx/cgl/MacOSXOnscreenCGLDrawable.java
src/jogl/classes/com/jogamp/opengl/impl/macosx/cgl/MacOSXPbufferCGLContext.java
src/jogl/classes/com/jogamp/opengl/impl/macosx/cgl/MacOSXPbufferCGLDrawable.java
src/jogl/classes/com/jogamp/opengl/impl/windows/wgl/WindowsDummyWGLDrawable.java
src/jogl/classes/com/jogamp/opengl/impl/windows/wgl/WindowsExternalWGLContext.java
src/jogl/classes/com/jogamp/opengl/impl/windows/wgl/WindowsExternalWGLDrawable.java
src/jogl/classes/com/jogamp/opengl/impl/windows/wgl/WindowsOffscreenWGLDrawable.java
src/jogl/classes/com/jogamp/opengl/impl/windows/wgl/WindowsOnscreenWGLDrawable.java
src/jogl/classes/com/jogamp/opengl/impl/windows/wgl/WindowsPbufferWGLDrawable.java
src/jogl/classes/com/jogamp/opengl/impl/windows/wgl/WindowsWGLContext.java
src/jogl/classes/com/jogamp/opengl/impl/windows/wgl/WindowsWGLDrawable.java
src/jogl/classes/com/jogamp/opengl/impl/windows/wgl/WindowsWGLDrawableFactory.java
src/jogl/classes/com/jogamp/opengl/impl/windows/wgl/WindowsWGLGraphicsConfiguration.java
src/jogl/classes/com/jogamp/opengl/impl/windows/wgl/WindowsWGLGraphicsConfigurationFactory.java
src/jogl/classes/com/jogamp/opengl/impl/x11/glx/X11DummyGLXDrawable.java
src/jogl/classes/com/jogamp/opengl/impl/x11/glx/X11ExternalGLXContext.java
src/jogl/classes/com/jogamp/opengl/impl/x11/glx/X11ExternalGLXDrawable.java
src/jogl/classes/com/jogamp/opengl/impl/x11/glx/X11GLXContext.java
src/jogl/classes/com/jogamp/opengl/impl/x11/glx/X11GLXDrawable.java
src/jogl/classes/com/jogamp/opengl/impl/x11/glx/X11GLXDrawableFactory.java
src/jogl/classes/com/jogamp/opengl/impl/x11/glx/X11OffscreenGLXContext.java
src/jogl/classes/com/jogamp/opengl/impl/x11/glx/X11OffscreenGLXDrawable.java
src/jogl/classes/com/jogamp/opengl/impl/x11/glx/X11OnscreenGLXDrawable.java
src/jogl/classes/com/jogamp/opengl/impl/x11/glx/X11PbufferGLXDrawable.java
src/jogl/classes/com/jogamp/opengl/util/Animator.java
src/jogl/classes/com/jogamp/opengl/util/AnimatorBase.java
src/jogl/classes/com/jogamp/opengl/util/FPSAnimator.java
src/jogl/classes/javax/media/opengl/DefaultGLCapabilitiesChooser.java
src/jogl/classes/javax/media/opengl/GLAnimatorControl.java
src/jogl/classes/javax/media/opengl/GLArrayData.java
src/jogl/classes/javax/media/opengl/GLAutoDrawable.java
src/jogl/classes/javax/media/opengl/GLBase.java
src/jogl/classes/javax/media/opengl/GLCapabilities.java
src/jogl/classes/javax/media/opengl/GLCapabilitiesChooser.java
src/jogl/classes/javax/media/opengl/GLContext.java
src/jogl/classes/javax/media/opengl/GLDrawable.java
src/jogl/classes/javax/media/opengl/GLDrawableFactory.java
src/jogl/classes/javax/media/opengl/GLProfile.java
src/jogl/classes/javax/media/opengl/awt/GLCanvas.java
src/jogl/classes/javax/media/opengl/awt/GLJPanel.java
src/junit/com/jogamp/test/junit/jogl/drawable/TestDrawable01NEWT.java
src/junit/com/jogamp/test/junit/jogl/offscreen/Surface2File.java
src/junit/com/jogamp/test/junit/newt/TestDisplayLifecycle01NEWT.java
src/junit/com/jogamp/test/junit/newt/TestFocus02SwingAWTRobot.java
src/junit/com/jogamp/test/junit/newt/parenting/TestParenting01NEWT.java
src/junit/com/jogamp/test/junit/newt/parenting/TestParenting01aAWT.java
src/junit/com/jogamp/test/junit/newt/parenting/TestParenting01bAWT.java
src/junit/com/jogamp/test/junit/newt/parenting/TestParenting01cAWT.java
src/junit/com/jogamp/test/junit/newt/parenting/TestParenting01cSwingAWT.java
src/junit/com/jogamp/test/junit/newt/parenting/TestParenting02AWT.java
src/junit/com/jogamp/test/junit/util/AWTRobotUtil.java
src/nativewindow/classes/com/jogamp/nativewindow/impl/ProxySurface.java [moved from src/nativewindow/classes/com/jogamp/nativewindow/impl/NullWindow.java with 87% similarity]
src/nativewindow/classes/com/jogamp/nativewindow/impl/jawt/JAWTWindow.java
src/nativewindow/classes/com/jogamp/nativewindow/impl/jawt/windows/WindowsJAWTWindow.java
src/nativewindow/classes/javax/media/nativewindow/NativeSurface.java [new file with mode: 0644]
src/nativewindow/classes/javax/media/nativewindow/NativeWindow.java
src/nativewindow/classes/javax/media/nativewindow/SurfaceUpdatedListener.java
src/nativewindow/classes/javax/media/nativewindow/package.html
src/nativewindow/classes/javax/media/nativewindow/util/Dimension.java [new file with mode: 0644]
src/nativewindow/classes/javax/media/nativewindow/util/Insets.java [moved from src/newt/classes/com/jogamp/newt/util/Insets.java with 97% similarity]
src/nativewindow/classes/javax/media/nativewindow/util/Point.java [new file with mode: 0644]
src/nativewindow/classes/javax/media/nativewindow/util/Rectangle.java [moved from src/nativewindow/classes/com/jogamp/nativewindow/util/Rectangle.java with 68% similarity]
src/nativewindow/native/x11/Xmisc.c
src/newt/classes/com/jogamp/newt/Window.java
src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java
src/newt/classes/com/jogamp/newt/event/WindowUpdateEvent.java
src/newt/classes/com/jogamp/newt/impl/OffscreenWindow.java
src/newt/classes/com/jogamp/newt/impl/WindowImpl.java
src/newt/classes/com/jogamp/newt/impl/awt/AWTWindow.java
src/newt/classes/com/jogamp/newt/impl/macosx/MacWindow.java
src/newt/classes/com/jogamp/newt/impl/windows/WindowsWindow.java
src/newt/classes/com/jogamp/newt/opengl/GLWindow.java
src/newt/native/WindowsWindow.c
src/newt/native/X11Window.c
http://JogAmp.org git info: FAQ, tutorial and man pages.