Jogamp
jogl.git
4 years agoMovie JNLP/NAppletAdd: joal jar file shall come before jogl's (dependency - refine... v2.0.2
Sven Gothel [Sat, 20 Jul 2013 08:33:58 +0000 (01:33 -0700)]
Movie JNLP/NAppletAdd: joal jar file shall come before jogl's (dependency - refine commit 3e4dac6373185a1a9061b394601221052b2bef84)

4 years agoFFMPEGMediaPlayer: Cleanup AudioPusher 'usage', i.e. disabled for now (subject to...
Sven Gothel [Sat, 20 Jul 2013 08:23:03 +0000 (01:23 -0700)]
FFMPEGMediaPlayer: Cleanup AudioPusher 'usage', i.e. disabled for now (subject to be removed).

4 years agoFFMPEGMediaPlayer: Fix yuv stored in alpha shader decode on ES2 and GL2
Xerxes Rånby [Sat, 20 Jul 2013 07:46:36 +0000 (00:46 -0700)]
FFMPEGMediaPlayer: Fix yuv stored in alpha shader decode on ES2 and GL2

Regression introduced by:
dba2faf8520a43a809eb756869c6c97a0a2ef2cd

4 years agoMovie JNLP/NAppletAdd: Add joal jar file
Sven Gothel [Fri, 19 Jul 2013 03:17:59 +0000 (05:17 +0200)]
Movie JNLP/NAppletAdd: Add joal jar file

4 years agoFFMPEGPlayer Audio Sink Refactoring ..
Sven Gothel [Fri, 19 Jul 2013 03:08:34 +0000 (05:08 +0200)]
FFMPEGPlayer Audio Sink Refactoring ..

- AudioSink w/ AudioFrame and formats public

- ALAudioSink uses a circular buffer now, hence relaxes the one-threaded player mode

- FFMPEGMediaPlayer uses multiple audio frames (equal to the ALAudioSink number)
  and wraps data to NIO buffer w/o copy.

- FFMPEGMediaPlayer audio threading currently disabled: distorted sound
  Seems that the ALAudioSink's circular buffer usage is good enough for now.

- Verbosity only w/ DEBUG flag

- New SyncedRingbuffer for effcient synced buffering

4 years agoDoc: Overview/Evol .. embedded size
Sven Gothel [Thu, 18 Jul 2013 12:15:45 +0000 (14:15 +0200)]
Doc: Overview/Evol .. embedded size

4 years agoUML: Fix 'core' layout - more similar to 'all'
Sven Gothel [Thu, 18 Jul 2013 12:14:39 +0000 (14:14 +0200)]
UML: Fix 'core' layout - more similar to 'all'

4 years agoDoc: Overview/Evol: Fix embedded size / UML: Fix file attribs
Sven Gothel [Thu, 18 Jul 2013 11:55:45 +0000 (13:55 +0200)]
Doc: Overview/Evol: Fix embedded size / UML: Fix file attribs

4 years agoUML Doc: Fix separator ..
Sven Gothel [Thu, 18 Jul 2013 11:50:46 +0000 (13:50 +0200)]
UML Doc: Fix separator ..

4 years agoUML Doc: Fix separator ..
Sven Gothel [Thu, 18 Jul 2013 11:45:43 +0000 (13:45 +0200)]
UML Doc: Fix separator ..

4 years agoUML Doc: Fix alignment / separator ..
Sven Gothel [Thu, 18 Jul 2013 11:41:31 +0000 (13:41 +0200)]
UML Doc: Fix alignment / separator ..

4 years agoAPI doc: Use paragraph instead of manual line break ..
Sven Gothel [Thu, 18 Jul 2013 11:24:33 +0000 (13:24 +0200)]
API doc: Use paragraph instead of manual line break ..

4 years agoWWW: Added JOGL spec link, fixed grammar .
Sven Gothel [Thu, 18 Jul 2013 11:12:47 +0000 (13:12 +0200)]
WWW: Added JOGL spec link, fixed grammar .

4 years agoDoc: Update UML diagram and 'Overview-OpenGL-Evolution-And-JOGL'
Sven Gothel [Thu, 18 Jul 2013 11:12:07 +0000 (13:12 +0200)]
Doc: Update UML diagram and 'Overview-OpenGL-Evolution-And-JOGL'

4 years agoMerge remote-tracking branch 'petr-s/pr744'
Sven Gothel [Wed, 17 Jul 2013 14:29:49 +0000 (16:29 +0200)]
Merge remote-tracking branch 'petr-s/pr744'

4 years agoMerge remote-tracking branch 'xranby/FFMPEGMediaPlayer'
Sven Gothel [Wed, 17 Jul 2013 14:18:27 +0000 (16:18 +0200)]
Merge remote-tracking branch 'xranby/FFMPEGMediaPlayer'

4 years agoJavadoc: Use JogAmp Stylesheet / Colors ..
Sven Gothel [Wed, 17 Jul 2013 14:16:17 +0000 (16:16 +0200)]
Javadoc: Use JogAmp Stylesheet / Colors ..

4 years agoNativeWindow API Doc: Fix layout / Add version.
Sven Gothel [Wed, 17 Jul 2013 14:15:32 +0000 (16:15 +0200)]
NativeWindow API Doc: Fix layout / Add version.

4 years agoFix Bug 744: Added support of RLE encoded .tga
Petr Skramovsky [Wed, 17 Jul 2013 11:36:33 +0000 (13:36 +0200)]
Fix Bug 744: Added support of RLE encoded .tga

4 years agoAPI doc: Add old glext-20130207.h header for complete extension association. Fix...
Sven Gothel [Wed, 17 Jul 2013 10:20:19 +0000 (12:20 +0200)]
API doc: Add old glext-20130207.h header for complete extension association. Fix GL* API doc header, align w/ spec-overview.

4 years agoAPI doc: Update native-taglet / Fix creation, i.e. use 'man2' instead of 'man'.
Sven Gothel [Wed, 17 Jul 2013 10:18:09 +0000 (12:18 +0200)]
API doc: Update native-taglet / Fix creation, i.e. use 'man2' instead of 'man'.

4 years agoMerge remote-tracking branch 'upstream/master'
Petr Skramovsky [Wed, 17 Jul 2013 07:20:46 +0000 (09:20 +0200)]
Merge remote-tracking branch 'upstream/master'

4 years agoJOGL API Doc: Remove 'JSR 231' identifier - we are no more bound to a JSR, for a...
Sven Gothel [Wed, 17 Jul 2013 04:32:52 +0000 (06:32 +0200)]
JOGL API Doc: Remove 'JSR 231' identifier - we are no more bound to a JSR, for a long time!

4 years agoMove doc/bouml -> doc/uml - and add symbolic link to doc/bouml ..
Sven Gothel [Wed, 17 Jul 2013 04:32:02 +0000 (06:32 +0200)]
Move doc/bouml -> doc/uml - and add symbolic link to doc/bouml ..

4 years agoRemedy for Bug 782: Issue Debug.initSingleton() or Debug.debug(..) before calling...
Sven Gothel [Wed, 17 Jul 2013 02:27:13 +0000 (04:27 +0200)]
Remedy for Bug 782: Issue Debug.initSingleton() or Debug.debug(..) before calling 'PropertyAccess.isPropertyDefined(propName, default)' through Debug class.

Calling 'Debug.isPropertyDefined(propName, default)' may be 'optimized' to
'PropertyAccess.isPropertyDefined(propName, default)', which would skip the modules Debug's class initialization.

Iff that happens, an AccessControlException may happen, due to requesting an insecure property,
since modules own Debug class has not been added it's trusted prefixes from within it's init block yet.

This seems to be a bug of the JVM .. to me, however .. the above description is the only
able to explain the issue at hand.

+++

Fix calls Debug class own static methods, either Debug.initSingleton() or Debug.debug(),
before calling 'isPropertyDefined(propName, default)'.

+++

Also mark Debug class static methods final!

+++

4 years agoGLSL core fixes - texture2D and varying/attributes/.. preprocessing
Sven Gothel [Wed, 17 Jul 2013 01:20:14 +0000 (03:20 +0200)]
GLSL core fixes - texture2D and varying/attributes/.. preprocessing

4 years agoTestBug722GLContextDrawableSwitchNewt2AWT: Test n/a if JAWT requires offscreen, i...
Sven Gothel [Wed, 17 Jul 2013 01:19:30 +0000 (03:19 +0200)]
TestBug722GLContextDrawableSwitchNewt2AWT: Test n/a if JAWT requires offscreen, i.e. no on- offscreen switch possible.

4 years agoUse MaxFixedFunc(..) GLProfile if pbuffer or GL2-compat is required.
Sven Gothel [Wed, 17 Jul 2013 01:18:55 +0000 (03:18 +0200)]
Use MaxFixedFunc(..) GLProfile if pbuffer or GL2-compat is required.

4 years agoMore shader fixes for core (GLSL 150): texture2D -> texture, texture3D is deprecated...
Sven Gothel [Tue, 16 Jul 2013 23:14:00 +0000 (01:14 +0200)]
More shader fixes for core (GLSL 150): texture2D -> texture, texture3D is deprecated in 130 and removed in 150.

4 years agoX11GLXContext: Remove redundant manual aliasing of ext. names in isExtensionAvailable...
Sven Gothel [Tue, 16 Jul 2013 23:00:19 +0000 (01:00 +0200)]
X11GLXContext: Remove redundant manual aliasing of ext. names in isExtensionAvailable() - impl. uses a mapping.

4 years agoFix OSX GL-core lack of pbuffer: GLDrawableFactory.canCreateGLPbuffer(..) add GLProfi...
Sven Gothel [Tue, 16 Jul 2013 22:59:45 +0000 (00:59 +0200)]
Fix OSX GL-core lack of pbuffer: GLDrawableFactory.canCreateGLPbuffer(..) add GLProfile argument, similar to canCreateFBO(..)

In case a compatible non-core profile is requests, canCreateGLPbuffer(..) returns false on OSX.

4 years agoTexture: Fix 'premultiply alpha' semantics in API doc description. Texture class...
Sven Gothel [Tue, 16 Jul 2013 22:04:47 +0000 (00:04 +0200)]
Texture: Fix 'premultiply alpha' semantics in API doc description. Texture class does _nor_ premultiply RGBA image data by default!

4 years agoFix GLContext.isGLES3CompatAvailable(..) API doc and reorder query (from commit 1a20e...
Sven Gothel [Tue, 16 Jul 2013 18:52:53 +0000 (20:52 +0200)]
Fix GLContext.isGLES3CompatAvailable(..) API doc and reorder query (from commit 1a20ef3aa1dc9acedd7da0475ee19d4c40b18498)

4 years agoRedefine: isGLES3Compatible() and isGL4ES3(), i.e. allow GL4ES3 usage in case proper...
Sven Gothel [Tue, 16 Jul 2013 18:46:42 +0000 (20:46 +0200)]
Redefine: isGLES3Compatible() and isGL4ES3(), i.e. allow GL4ES3 usage in case proper ES3_compat is given.

isGLES3Compatible() and isGL4ES3() of GLBase _and_ GLContext
includes [ GL >= 4.3, GL >= 3.1 w/ GL_ARB_ES3_compatibility and GLES3 ].

Tested GL 'aliasing' w/ TestGLProfile01NEWT, i.e. isGL*() and getGL*().

4 years agoALAudioSink: Reduce exessive CPU usage caused by polling alGetSourcei.
Xerxes Rånby [Tue, 16 Jul 2013 11:26:48 +0000 (13:26 +0200)]
ALAudioSink: Reduce exessive CPU usage caused by polling alGetSourcei.

Signed-off-by: Xerxes Rånby <xerxes@zafena.se>

4 years agoFFMPEGMediaPlayer: Only instance ALAudioSink if JOAL is found on the classpath.
Xerxes Rånby [Tue, 16 Jul 2013 09:56:37 +0000 (11:56 +0200)]
FFMPEGMediaPlayer: Only instance ALAudioSink if JOAL is found on the classpath.

Signed-off-by: Xerxes Rånby <xerxes@zafena.se>

4 years agoFix FFMPEGMediaPlayer: Only use RED for GL3ES3 profiles, otherwise stick w/ ALPHA...
Sven Gothel [Tue, 16 Jul 2013 08:18:54 +0000 (10:18 +0200)]
Fix FFMPEGMediaPlayer: Only use RED for GL3ES3 profiles, otherwise stick w/ ALPHA (regression of e92e561df9673ce77783d6fa3815a942a39a53c0)

GLES2 does not and GL2 may not support RED!

4 years agoTests: Cleanup for GL core usage p2 - (Proper GLSL version number)
Sven Gothel [Tue, 16 Jul 2013 05:49:12 +0000 (07:49 +0200)]
Tests: Cleanup for GL core usage p2 - (Proper GLSL version number)

4 years agoTests: Cleanup for GL core usage (Skip texture enable/disable, proper GLSL version...
Sven Gothel [Tue, 16 Jul 2013 05:25:58 +0000 (07:25 +0200)]
Tests: Cleanup for GL core usage (Skip texture enable/disable, proper GLSL version number, use VBO only, ...)

4 years agoGPUUISceneGLListener0A: Rotate on vertical scroll ..
Sven Gothel [Tue, 16 Jul 2013 05:24:34 +0000 (07:24 +0200)]
GPUUISceneGLListener0A: Rotate on vertical scroll ..

4 years agoFFMPEGMediaPlayer: Use GL_RED instead of deprecated GL_ALPHA, otherwise won't work...
Sven Gothel [Tue, 16 Jul 2013 05:23:07 +0000 (07:23 +0200)]
FFMPEGMediaPlayer: Use GL_RED instead of deprecated GL_ALPHA, otherwise won't work w/ core >= GL3 profiles

4 years agoTexture: Skip glEnable/glDisable TEXTURE target if using a core context!
Sven Gothel [Tue, 16 Jul 2013 05:07:05 +0000 (07:07 +0200)]
Texture: Skip glEnable/glDisable TEXTURE target if using a core context!

4 years agoGLProfile: Abstract profile to impl. mapping, i.e. GL2ES2 -> GL3, favors core profile...
Sven Gothel [Tue, 16 Jul 2013 05:06:25 +0000 (07:06 +0200)]
GLProfile: Abstract profile to impl. mapping, i.e. GL2ES2 -> GL3, favors core profile now - no more OSX exception!

4 years agoGL*: Expose isGL*Core(); GLContext: isGL*() API doc cleanup - align queries.
Sven Gothel [Tue, 16 Jul 2013 03:34:49 +0000 (05:34 +0200)]
GL*: Expose isGL*Core(); GLContext: isGL*() API doc cleanup - align queries.

4 years agoOnly use base pipelines for Trace/Debug, mock others (ES2, GL2, ..); BuildComposableP...
Sven Gothel [Tue, 16 Jul 2013 01:46:59 +0000 (03:46 +0200)]
Only use base pipelines for Trace/Debug, mock others (ES2, GL2, ..); BuildComposablePipeline: Unify GL identify methods

- Only use base pipelines for Trace/Debug, mock others (ES2, GL2, ..)
  The Trace/Debug generated pipelines consume quite some space
  and only the actual GL*Impl pipeline is actually required.

  To make this work, we have to identify the GL type via it's downstream instance
  to implement isGL*() and getGL*() methods, see below!

  Adding dummy Trace/Debug type wrapper for GL2, GL3, GL3bc, GL4 and GLES2.

BuildComposablePipeline: Unify GL identify methods
  As described above, Trace/Debug shall utilize downstream identification for isGL*() and getGL*() methods.

  Custom types, like FixedFuncImpl may choose to be identified by their class inheritance,
  by passing command-line argument 'gl_identity_by_assignable_class'.

4 years agoFix PointsDemoES1: No zero point size allowed
Sven Gothel [Tue, 16 Jul 2013 01:39:39 +0000 (03:39 +0200)]
Fix PointsDemoES1: No zero point size allowed

4 years agoWWW: Resize insparia png
Sven Gothel [Tue, 16 Jul 2013 00:37:28 +0000 (02:37 +0200)]
WWW: Resize insparia png

4 years agoWWW: Add JaamSim; Use local VolumeViewer png
Sven Gothel [Tue, 16 Jul 2013 00:34:01 +0000 (02:34 +0200)]
WWW: Add JaamSim; Use local VolumeViewer png

4 years agoFix value range of CTX_* options bits, regression of commit 3a0d7703da32e9a5ddf08a334...
Sven Gothel [Mon, 15 Jul 2013 21:57:26 +0000 (23:57 +0200)]
Fix value range of CTX_* options bits, regression of commit 3a0d7703da32e9a5ddf08a334f18588a78038d88

4 years agoFix BuildComposablePipeline's isGL*/getGL* ; GLBase: getDownstreamGL()/getRootGL...
Sven Gothel [Mon, 15 Jul 2013 20:49:47 +0000 (22:49 +0200)]
Fix BuildComposablePipeline's isGL*/getGL* ; GLBase: getDownstreamGL()/getRootGL(); GLContext.isGL* added proper API doc., isGL3core()/hasNoDefaultVAO() and getDefaultVAO().

- Fix BuildComposablePipeline's isGL*/getGL* (regression of commit 3a0d7703da32e9a5ddf08a334f18588a78038d880)

- GLBase: getDownstreamGL()/getRootGL()
  Allows user traversing through pipelined GL instances.
  Also added getRootGL() to GLContext.

- GLContext.isGL* added proper API doc.: We test the actual context, not the profile.

- GLContext isGL3core()/hasNoDefaultVAO() and getDefaultVAO()
  - Move isGL3code() def. back to pre 3a0d7703da32e9a5ddf08a334f18588a78038d880, i.e. Includes [ GL4, GL3 ] w/o GLES3.
  - Added hasNoDefaultVAO() and getDefaultVAO() .. incl. [ GL4, GL3, GLES3 ]

4 years agoFix regressions of commit 3a0d7703da32e9a5ddf08a334f18588a78038d88: Avoid CPP redefin...
Sven Gothel [Mon, 15 Jul 2013 18:08:52 +0000 (20:08 +0200)]
Fix regressions of commit 3a0d7703da32e9a5ddf08a334f18588a78038d88: Avoid CPP redefinitions

4 years agoStringBuffer -> StringBuilder
Sven Gothel [Mon, 15 Jul 2013 11:39:44 +0000 (13:39 +0200)]
StringBuffer -> StringBuilder

4 years agoAdd Support for GL 4.3 (Bug 716) and ES 3.0 (Bug 717)
Sven Gothel [Mon, 15 Jul 2013 11:39:22 +0000 (13:39 +0200)]
Add Support for GL 4.3 (Bug 716) and ES 3.0 (Bug 717)

ES3 / GL4.3:

- Update all EGL, GLX, WGL and GL (desktop and mobile) khronos headers to latest version.
  - GL3/gl3* -> GL/glcorearb*

  - Explicitly preserve ES2_compatibility and ES3_compatibility in header,
    most extension grouping was removed in new headers.

  - Always load all GLHeader to ensure proper extension association across all profiles.

  - Unified method signatures

  - Added GL_EXT_map_buffer_range to core

  - Using common 'glMapBufferImpl(..)' for all glMapBuffer(..) and glMapBufferRange(..) impl.

  - Init necessary fields of GL instances via 'finalizeInit()' called by reflection, if exist.
    This allows removing initialization checks, i.e. for all buffer validations.

- BuildStaticGLInfo: Can handle new GL header structure, i.e. one CPP extenstion block incl. define + funcs.

- GLJavaMethodBindingEmitter: Simply print the

- No GL duplication due to new intermediate interfaces, see below

- OO lineare inheritance (Added GL2ES3, GL3ES3 and GL4ES3 intemediates):
  GLBase - GL - GL2ES2 - GLES2
  GLBase - GL - GL2ES2 - GL2GL3 - [ GL2, GL3 ]
  GLBase - GL - GL2ES2 - GL2ES3 - GL3ES3 - [ GL3 ]
  GLBase - GL - GL2ES2 - GL2ES3 - GL3ES3 - GL4ES3 - [ GLES3, GL4, .. ]

- Expose 'usable' intermediate interfaces GL3ES3 and GL4ES3 in GLBase/GLProfile/GLContext
  via is*() and get*().

- GLContext*:
  - isGL3core() is true if [ GL4, GL3, GLES3 ] (added GLES3)

  - Added ctxProfile argument to allow handling ES versions:
    - getMaxMajor(..), getMaxMinor(..), isValidGLVersion(..) and decrementGLVersion(..)
    - mapGLVersions(..) prepared for ES ARB/KHR validation

  - EGLContext checks ES3 (via old ctx's GL_VERSION)

- ExtensionAvailabilityCache adds GL_ES_Version_X_Y for ES.

- Prelim tests w/ Mesa 9.1.3
  GL Version     3.0 (ES profile, ES2 compat, ES3 compat, FBO, hardware) - OpenGL ES 3.0 Mesa 9.1.3 [GL 3.0.0, vendor 9.1.3 (Mesa 9.1.3)]

- TODO:
  - Use KHR_create_context in EGLContext.createContextARBImpl(..)
  - More tests (Mobile, ..)

+++

Misc:

- GLContext*:
  - Complete glAllocateMemoryNV w/ glFreeMemoryNV.

4 years agoTestMainVersionGLWindowNEWT: Add 'manual' version get/print for verification.
Sven Gothel [Wed, 10 Jul 2013 11:58:00 +0000 (13:58 +0200)]
TestMainVersionGLWindowNEWT: Add 'manual' version get/print for verification.

4 years agoTestGLWindows02NEWTAnimated: Give animator a chance to become paused after pulling...
Sven Gothel [Wed, 10 Jul 2013 00:27:29 +0000 (02:27 +0200)]
TestGLWindows02NEWTAnimated: Give animator a chance to become paused after pulling GLAD from it.

4 years agojunit.run.newt.awt: Exclude SWT
Sven Gothel [Tue, 9 Jul 2013 22:38:05 +0000 (00:38 +0200)]
junit.run.newt.awt: Exclude SWT

4 years agoTestScreenMode00cNEWT: Enable testing of UITestCase.resetXRandRIfX11() only in manual...
Sven Gothel [Tue, 9 Jul 2013 22:10:52 +0000 (00:10 +0200)]
TestScreenMode00cNEWT: Enable testing of UITestCase.resetXRandRIfX11() only in manual mode.

4 years agoUITestCase.resetXRandRIfX11(): Iterate through all outputs and sets the preferred...
Sven Gothel [Tue, 9 Jul 2013 19:47:50 +0000 (21:47 +0200)]
UITestCase.resetXRandRIfX11(): Iterate through all outputs and sets the preferred mode and normal rotation using RandR 1.3

.. using commandline processing w/ 'xrandr'

4 years agoPNGJ: Bump to git sha1 a0b1101ba2d37de39428ed55c8189502e24a3125 of https://code.googl...
Sven Gothel [Tue, 9 Jul 2013 14:41:45 +0000 (16:41 +0200)]
PNGJ: Bump to git sha1 a0b1101ba2d37de39428ed55c8189502e24a3125 of https://code.google.com/p/pngj Part 2/2 - Started w/ 51427b92a2d9cd3fc619854e26536c9c6adad947

Missed rejected patches ..

4 years agoRefine 95ffc6f73b460a24e8f117060de1d80ec85e4c25: Reset X11 XRandR only for MonitorMod...
Sven Gothel [Tue, 9 Jul 2013 14:39:11 +0000 (16:39 +0200)]
Refine 95ffc6f73b460a24e8f117060de1d80ec85e4c25: Reset X11 XRandR only for MonitorMode test cases reducing impact.

4 years agoNEWT MonitorMode test cases: Add X11 XRandR commandline reset to UITestCase's AfterCl...
Sven Gothel [Tue, 9 Jul 2013 14:30:45 +0000 (16:30 +0200)]
NEWT MonitorMode test cases: Add X11 XRandR commandline reset to UITestCase's AfterClass if available (X11).

In case a MonitorMode test case fails, force XRandR reset '-s 0 -o normal' at end of test class if X11.

Unit Test: TestScreenMode00cNEWT

4 years agoNEWT EDTUtil: Exposed weakness of EDTUtil usage due to usage of WeakReference, i...
Sven Gothel [Tue, 9 Jul 2013 13:04:50 +0000 (15:04 +0200)]
NEWT EDTUtil: Exposed weakness of EDTUtil usage due to usage of WeakReference, i.e. higher retention of Display instances.

- WeakReference Change 99479bf3197cde8e89c5b499d135417863d521c7

- Refines commits:
  feb352145af1643a57eaae99c0342e6f5e0f2a2e
  dec4b02fe4b93028c85de6a56b6af79601042d6e
  433e3914324b90c910b018bb7d9d80e814c67123

Reviews EDTUtil API and usage:
  - less confusing / more determined EDTUtil API
  - EDTUtil's thread shall only be reset and started when required (-> lazy)
  - EDTUtil's instance in Display shall be handled thread safe w/o extra blocking
  - EDTUtil's implementations (Default, SWT and AWT) shall be aligned / similar as much as possible

Further note: SWT's EDTUtil (NewtCanvasSWT) shall not use a reused Display instance due to it's
              custom SWTEDTUtil. We may need to disable the ref. cache if custom EDTUtil (setEDTUtil)
              is intended (used).

4 years agoFix SWTEDTUtil regression caused by dec4b02fe4b93028c85de6a56b6af79601042d6e, ensurin...
Sven Gothel [Fri, 5 Jul 2013 20:48:12 +0000 (22:48 +0200)]
Fix SWTEDTUtil regression caused by dec4b02fe4b93028c85de6a56b6af79601042d6e, ensuring EDT is running for reused Display instances.

Refine EDTUtil semantics of:
  - reset()
  - waitUntilStopped()

AWTEDTUtil/SWTEDTUtil: Properly signal !running when shutdown

SWTEDTUtil: Take SWT isDisposed() into account.

4 years agoNEWT Display.create: If reusing an existing instance, ensure EDT is running!
Sven Gothel [Fri, 5 Jul 2013 09:32:12 +0000 (11:32 +0200)]
NEWT Display.create: If reusing an existing instance, ensure EDT is running!

4 years agoFix Bug 765: Add glMultiDrawElementsBaseVertex ; Restrict PointerBuffer usage to...
Sven Gothel [Fri, 5 Jul 2013 04:25:52 +0000 (06:25 +0200)]
Fix Bug 765: Add glMultiDrawElementsBaseVertex ; Restrict PointerBuffer usage to NIO only.

Code snippet for PointerBuffer usage:

Code snippet .. how to use PointerBuffer in this case:

IntBuffer indices = Buffers.newDirectIntBuffer(count);
indices.put(...); ...
indices.rewind();

final PointerBuffer indicesP = PointerBuffer.allocateDirect(1);
indicesP.referenceBuffer(indices);

-> glMultiDrawElementsBaseVertex(int mode, IntBuffer count, int type, PointerBuffer indices, int primcount, IntBuffer basevertex)

4 years agoFix Bug 763 and Bug 764: Proper GL gluegen for glCreateShaderProgramv and GL3's glDra...
Sven Gothel [Fri, 5 Jul 2013 03:51:18 +0000 (05:51 +0200)]
Fix Bug 763 and Bug 764: Proper GL gluegen for glCreateShaderProgramv and GL3's glDraw*Elements*.

glCreateShaderProgramv: Param idx 2 should be String[]

All following draw commands are buffer object types, i.e. shall accept memory buffer reference (VBO/VAO/..):

+BufferObjectKind Element glDrawElementsBaseVertex
+BufferObjectKind Element glDrawElementsInstanced
+BufferObjectKind Element glDrawElementsInstancedBaseInstance
+BufferObjectKind Element glDrawElementsInstancedBaseVertex
+BufferObjectKind Element glDrawElementsInstancedBaseVertexBaseInstance
 BufferObjectKind Element glDrawRangeElements
+BufferObjectKind Element glDrawRangeElementsBaseVertex

4 years agoWorkaround NVidia driver 325.8 returning 4.3-compat for any compat request, i.e....
Sven Gothel [Fri, 5 Jul 2013 03:06:35 +0000 (05:06 +0200)]
Workaround NVidia driver 325.8 returning 4.3-compat for any compat request, i.e. allowing 4.3 and 4.4 for GL version validation.

4.4 b/c it may come up soon.

4 years agoTestScreenMode*: Stop animator before destroying window - be nice.
Sven Gothel [Fri, 5 Jul 2013 00:37:04 +0000 (02:37 +0200)]
TestScreenMode*: Stop animator before destroying window - be nice.

4 years agoGLWindow.shutdownRenderingAction: If on anim thread, simply stop ourselves (non-blocking)
Sven Gothel [Fri, 5 Jul 2013 00:36:19 +0000 (02:36 +0200)]
GLWindow.shutdownRenderingAction: If on anim thread, simply stop ourselves (non-blocking)

4 years agoTestScreenMode02bNEWT: Don't assert/wait for Screen shutdown if mode change already...
Sven Gothel [Thu, 4 Jul 2013 23:53:59 +0000 (01:53 +0200)]
TestScreenMode02bNEWT: Don't assert/wait for Screen shutdown if mode change already failed

4 years agoNEWT WindowImpl: Add little GCed / windowList-size stats at addWindow2List
Sven Gothel [Thu, 4 Jul 2013 21:04:20 +0000 (23:04 +0200)]
NEWT WindowImpl: Add little GCed / windowList-size stats at addWindow2List

4 years agoDefaultEDTUtil: If EDT is not started and task is null and wait intended, use nullTas...
Sven Gothel [Thu, 4 Jul 2013 20:51:01 +0000 (22:51 +0200)]
DefaultEDTUtil: If EDT is not started and task is null and wait intended, use nullTask ensuring to wait until EDT started.

4 years agoFix NPE - Regression of commit 99479bf3197cde8e89c5b499d135417863d521c7
Sven Gothel [Thu, 4 Jul 2013 20:48:02 +0000 (22:48 +0200)]
Fix NPE - Regression of commit 99479bf3197cde8e89c5b499d135417863d521c7

4 years agoNEWT: Using WeakReferences for global cache of Display, Screen and Window instances...
Sven Gothel [Thu, 4 Jul 2013 18:19:35 +0000 (20:19 +0200)]
NEWT: Using WeakReferences for global cache of Display, Screen and Window instances; Removing ref. at API destroy() is wrong ; Allow GC to clear ..

- Removing ref. at API destroy() is wrong
  - Since all instances can be recreated, removing ref at destroy() is simply wrong.
  - Keep weak references until GC collects, i.e. user does not claim them anymore.
    - Safe for Display, since it holds it's EDT thread.
    - Window/Screen .. if user abandons reference .. nothing we can do here.

- Allow GC to clear ..
  No need to hold ref loonger than user.

4 years agoTestDisplayLifecycle02NEWT: Renable testDisplayCreate02 (my fault)
Sven Gothel [Thu, 4 Jul 2013 17:41:37 +0000 (19:41 +0200)]
TestDisplayLifecycle02NEWT: Renable testDisplayCreate02 (my fault)

4 years agoTestDisplayLifecycle02NEWT: Ensure window/screen has been destroyed before validating...
Sven Gothel [Thu, 4 Jul 2013 17:40:52 +0000 (19:40 +0200)]
TestDisplayLifecycle02NEWT: Ensure window/screen has been destroyed before validating active count.

4 years agoTestScreenMode*: At destruction, properly wait until Window and Screen (after mode...
Sven Gothel [Thu, 4 Jul 2013 17:40:03 +0000 (19:40 +0200)]
TestScreenMode*: At destruction, properly wait until Window and Screen (after mode change) has been destroyed - avoiding conflicts w/ other tests (off thread destruction)

4 years agoTestScreenMode02bNEWT: Full MonitorMode w/ rotation failure - Expected on some platfo...
Sven Gothel [Thu, 4 Jul 2013 15:42:30 +0000 (17:42 +0200)]
TestScreenMode02bNEWT: Full MonitorMode w/ rotation failure - Expected on some platforms (NV driver) - Tolerated for now

4 years agoRefine 9c7ab101cf5261db3ef6160c0aa1906ffcce188b: Don't print extensions .. too much
Sven Gothel [Thu, 4 Jul 2013 15:30:38 +0000 (17:30 +0200)]
Refine 9c7ab101cf5261db3ef6160c0aa1906ffcce188b: Don't print extensions .. too much

4 years agoTestScreenMode*: Be more verbose setting screen mode.
Sven Gothel [Thu, 4 Jul 2013 15:17:08 +0000 (17:17 +0200)]
TestScreenMode*: Be more verbose setting screen mode.

4 years agoX11Window FullScreen: Toggle _NET_WM_BYPASS_COMPOSITOR not only for ABOVE .. but...
Sven Gothel [Thu, 4 Jul 2013 13:39:00 +0000 (15:39 +0200)]
X11Window FullScreen: Toggle _NET_WM_BYPASS_COMPOSITOR not only for ABOVE .. but also for FULLSCREEN WM state.

4 years agoRevisit Bug 770 and Bug 771: Only use FLAG_IS_FULLSCREEN_SPAN if required; At MonitoM...
Sven Gothel [Thu, 4 Jul 2013 12:46:28 +0000 (14:46 +0200)]
Revisit Bug 770 and Bug 771: Only use FLAG_IS_FULLSCREEN_SPAN if required; At MonitoMode change, reset fullscreen if FLAG_IS_FULLSCREEN_SPAN is supported.

- Bug 770: Only use FLAG_IS_FULLSCREEN_SPAN if required
  - If X11 WindowDriver _and_ virtual-screen-size > fullscreenViewport,
  - else we still use _NET_WM_STATE_FULLSCREEN on X11!

- Bug 771: At MonitoMode change, reset fullscreen if FLAG_IS_FULLSCREEN_SPAN is supported
  - Since we may still use _NET_WM_STATE_FULLSCREEN on X11:
    - Pause fullscreen at monitorModeChangeNotify(..)
    - Resume fullscreen at monitorModeChanged(..)

4 years agoTestScreenMode* Cleanup (reset)
Sven Gothel [Thu, 4 Jul 2013 12:14:13 +0000 (14:14 +0200)]
TestScreenMode* Cleanup (reset)

- TestScreenMode01aNEWT and TestScreenMode01dNEWT
  test auto-reset (destroying last Screen ref. reinstates orig MonitorMode)

- Other tests do manual reset.

- Add ant test target 'junit.run.newt.monitormode'
  to test only monitor-mode / fullscreen cases

4 years agoUse JoglVersion.getGLStrings(..) in 'famous' tests, removes redundancy .. Gears*...
Sven Gothel [Wed, 3 Jul 2013 23:56:24 +0000 (01:56 +0200)]
Use JoglVersion.getGLStrings(..) in 'famous' tests, removes redundancy .. Gears* RedSquare*

4 years agoRemove deprecated methods.
Sven Gothel [Wed, 3 Jul 2013 23:41:15 +0000 (01:41 +0200)]
Remove deprecated methods.

- Quaternion.isEmpty()
- Texture.dispose(GL)
- GLContext.getGLVersionMajor() / ..Minor()
- GLContextImpl.bindPbufferToTexture() / releasePbufferFromTexture()
- MouseEvent.getWheelRotation()
-

4 years agoGLRendererQuirks.GLNonCompliant: Recoverd a bit of known knowledge .. in API doc.
Sven Gothel [Wed, 3 Jul 2013 21:31:37 +0000 (23:31 +0200)]
GLRendererQuirks.GLNonCompliant: Recoverd a bit of known knowledge .. in API doc.

4 years agoMerge remote-tracking branch 'mraynsford/mark'
Sven Gothel [Wed, 3 Jul 2013 21:26:34 +0000 (23:26 +0200)]
Merge remote-tracking branch 'mraynsford/mark'

4 years agoRemove redundant check around Mesa quirk (that check has already occurred via isDrive...
Mark Raynsford [Wed, 3 Jul 2013 21:17:26 +0000 (21:17 +0000)]
Remove redundant check around Mesa quirk (that check has already occurred via isDriverMesa)

4 years agoRevise commit 4c34f5980bddcdc84b10cb3bcbb96b365b9d471e (Bug 767): TAB, BS and CR...
Sven Gothel [Wed, 3 Jul 2013 21:06:43 +0000 (23:06 +0200)]
Revise commit 4c34f5980bddcdc84b10cb3bcbb96b365b9d471e (Bug 767): TAB, BS and CR/ENTER are printable for NEWT KeyEvent and font handling. Fix regression.

- Original behavior was treating CR/ENTER them as printable, lets keep it this way.
- KeyEvent: Query these 3 whitespaces upfront, no need to incl. them in 'nonPrintableKeys'.

- Fix regression: Native VK_ENTER was not change in commit 4c34f5980bddcdc84b10cb3bcbb96b365b9d471e.

4 years agoMerge branch 'master' of ssh://jogamp.org/srv/scm/jogl into mark
Mark Raynsford [Wed, 3 Jul 2013 20:46:23 +0000 (20:46 +0000)]
Merge branch 'master' of ssh://jogamp.org/srv/scm/jogl into mark

4 years agoWindowImpl.consumeKeyEvent: Reduce DEBUG println and show println after propagating...
Sven Gothel [Wed, 3 Jul 2013 16:33:15 +0000 (18:33 +0200)]
WindowImpl.consumeKeyEvent: Reduce DEBUG println and show println after propagating event to show whether it has been consumed.

4 years agoGLJPanel: Add remark about FBO / GLSL texture-unit usage in API doc; Add API entry...
Sven Gothel [Wed, 3 Jul 2013 14:58:45 +0000 (16:58 +0200)]
GLJPanel: Add remark about FBO / GLSL texture-unit usage in API doc; Add API entry to set/get texture unit (default 0).

Allowing a user to set a specific texture-unit and to query the used texture-unit,
allows one to avoid a collision w/ own texture programming .. i.e. removes the burden to setup all params etc.

4 years agoTexture: Add 'Order of Texture Commansa' and their semantics to API doc .. due to...
Sven Gothel [Wed, 3 Jul 2013 14:56:41 +0000 (16:56 +0200)]
Texture: Add 'Order of Texture Commansa' and their semantics to API doc .. due to lot's of confusions.

4 years agoGLContext: Rename 2-digit VersionNumber statics aligning w/ all 3-digit names, e...
Sven Gothel [Wed, 3 Jul 2013 09:45:04 +0000 (11:45 +0200)]
GLContext: Rename 2-digit VersionNumber statics aligning w/ all 3-digit names, e.g. Version31 -> Version310. ; Trim GLVersionNumber string.

4 years agoBug 724: Testing PNG Transparency / Fixing GLSL Shader of test case: Mix texture...
Sven Gothel [Wed, 3 Jul 2013 09:43:18 +0000 (11:43 +0200)]
Bug 724: Testing PNG Transparency / Fixing GLSL Shader of test case: Mix texture alpha properly (pre-multiply), due to lack of ALPHA_BLENDING.

4 years agoPNGJ: Bump to git sha1 a0b1101ba2d37de39428ed55c8189502e24a3125 of https://code.googl...
Sven Gothel [Tue, 2 Jul 2013 20:25:23 +0000 (22:25 +0200)]
PNGJ: Bump to git sha1 a0b1101ba2d37de39428ed55c8189502e24a3125 of https://code.google.com/p/pngj/

4 years agoBug 724: Add manual unit test, incr. PNGImage verbosity.
Sven Gothel [Tue, 2 Jul 2013 20:24:08 +0000 (22:24 +0200)]
Bug 724: Add manual unit test, incr. PNGImage verbosity.

4 years agoFix Bug 767: TAB + BS are considered 'printable' - Compromise of 'editor' view and...
Sven Gothel [Tue, 2 Jul 2013 17:01:27 +0000 (19:01 +0200)]
Fix Bug 767: TAB + BS are considered 'printable' - Compromise of 'editor' view and 'font-definition' view. ENTER not. Fix ENTER code: 0xa -> 0xd !

4 years agoBug 759:
Mark Raynsford [Tue, 2 Jul 2013 16:40:56 +0000 (16:40 +0000)]
Bug 759:

Currently, the compatibility context on Mesa >= 9.1.3 seems to be
very broken. The core contexts, however, seem to be quite stable. This
commit both reduces and widens the scope of the current Mesa quirk to
include only Compatibility contexts on OpenGL > 3 || 3.n where n >= 1.

4 years agoBug 734: Bug could not be reproduced w/ TestScreenMode02bNEWT, however on some X11...
Sven Gothel [Tue, 2 Jul 2013 14:37:41 +0000 (16:37 +0200)]
Bug 734: Bug could not be reproduced w/ TestScreenMode02bNEWT, however on some X11 tests systems, artifacts could be experienced.

X11 Test systems w/ AMD fglrx and Intel Mesa, the rotated height
is cut off .. probably due to bug of driver code and rotation.

http://JogAmp.org git info: FAQ, tutorial and man pages.