Merge pull request #46 from xranby/master

Update make.jogl.all.linux-armv7.sh script: Set TARGET_PLATFORM_ROOT=/
Stabilize open InputStream's / Closeable's: Decorate w/ try-finally and close within the latter

See gluegen commit 24f8694a188b4a5255d4ac4f8b49982bd8ad3228
ShaderState: Use a HashMap instead of a HashSet for enabled attribute states, reducing fluctuating memory.
NEWT/setFullscreen(v): Save new state for to-be-created windows (not yet valid).
Minor changes: DefaultGLCapabilitiesChooser + GearsES1/2 and Android demos

DefaultGLCapabilitiesChooser: Move 'static' values to final static.

GearsES1/2: Handle width>=height case -> flip frustum.

Android: Enable fps trace dump after visibility, use default RGBA_8888,
         Explicitly don't use swapInterval (-1).
         NEWTGearsES2TransActivity: Gather Screen size and set demo view 2/3 of it.
GL/GLContext: Properly define swapInterval incl. default value for EGL (1) and desktop (undefined).

*GLContext.setSwapIntervalImpl: Simple return success, set state in GLContext.
Enable Android remote adb unit tests (1 Test currently / WIP)

- BOOTCLASSPATH - see gluegen commit 227ad20f6bf10d5d28073dfbd3fac363e3a09531
- Move jogl.test.apk creation in build-test.xml
- Enable and fix 'junit.run.remote.adb' target
AndroidWindow: Fix Native PixelFormat == VisualID { <0 case, TRANSLUCENCY, ..} ; Generate focus event/state; onTouch() consumed

- fix Native PixelFormat == VisualID { <0 case, TRANSLUCENCY, ..}
  - surfaceChanged(..): use 'ANativeWindow_getFormat(surfaceHandle)' if given format is generic (<0)
  - match used caps w/ format exactly

- generate focus event/state: always focus at creation and listen to onFocusChange()

- onTouch() consumed only if we mapped a NEWT event, otherwise return false.

- use VisualIDHolder of already chosen config to determine native VisualID

- use Log.d(MD.TAG, ..)
Merge branch 'master' of github.com:sgothel/jogl
Android: Minor cleanup ; NewtBaseActivity: clear static context at destroy
Adapt to gluegen Properties/Security commits f4ac27e177f6deb444280d3b375e7d343e38bd080 and eedb4b530fb83fc59a26962bcf7847a1404092a0
JOGL Applet Tests no more require junit.jar
Android Tests: Using JogAmp's ActivityLauncher (gluegen commit: 0cfc7847c58b51c9a26b50d905b592d1fc4c8578)

- Remove jogl.android-launcher.apk in favor of generic jogamp.android-launcher.apk

- All Android test code resides in jogl.test.apk (initial launcher and delegated 'real' one)
move src/test/native -> src/test-native - allowing better exclusion for archive scripts
Adapt to GlueGen IO resource changes URL -> URLConnection for effeciency; API doc enhancements; Minor edits

- API doc added/enhanced:
  - ShaderCode
  - ShaderUtil

- NewtBaseActivity: Clarify method / var names
Reduce Thread.dumpStack() in debug mode where no negative behavior appears or a stack trace may be helpful.
Fix bug 564 (X11 Mesa 8.0.1 GL 3.0 w/o GLX_ARB_create_context)

X11/Mesa 8.0.1 offers a GL 3.0 context w/o
having the GLX_ARB_create_context extension available
(even though the func-ptr glXCreateContextAttribsARB is not null).

We assumed that if no GLContext device availability is set,
it can be only GL 2.0 or ES1/ES2.

Fix: Relaxed these (false) constrains and map the created context
     reflecting using it's actual attributes.
Adding unit test to validate proper X11 Display closing (Bug 565)

Modified Daniel Balog's unit tests, covering GLWindow (NEWT), GLCanvas (AWT) and GLPBuffer
to fail immediatly when more than 1 open X11 Display is open.
GLContextImpl: Detect "llvmpipe" as a software renderer (Mesa 8.0.1)
X11GLXContext: X11Util.setX11ErrorHandler( .., DEBUG ? verbose : quiet )