Jogamp
jogl.git
7 years agoMerge remote branch 'wwalker/bug_463_gluScaleImage_memory' into pulled
Sven Gothel [Wed, 2 Feb 2011 16:24:02 +0000 (17:24 +0100)]
Merge remote branch 'wwalker/bug_463_gluScaleImage_memory' into pulled

7 years agoMerge remote branch 'wwalker/bug_459_shader_compilation' into pulled
Sven Gothel [Wed, 2 Feb 2011 16:22:51 +0000 (17:22 +0100)]
Merge remote branch 'wwalker/bug_459_shader_compilation' into pulled

7 years agoMerge remote branch 'wwalker/bug_457' into pulled
Sven Gothel [Wed, 2 Feb 2011 05:20:26 +0000 (06:20 +0100)]
Merge remote branch 'wwalker/bug_457' into pulled

7 years agoMerge remote branch 'wwalker/bug_417' into pulled
Sven Gothel [Wed, 2 Feb 2011 05:18:00 +0000 (06:18 +0100)]
Merge remote branch 'wwalker/bug_417' into pulled

7 years agoFixed bug 450 (unrendered right side of GLJPanel in Gears)
wwalker [Thu, 30 Dec 2010 20:01:04 +0000 (14:01 -0600)]
Fixed bug 450 (unrendered right side of GLJPanel in Gears)

This bug caused the right sides of GLJPanels not to render if the
panel is wider than its height (all pixels with x > height would
be black). Wrote a unit test to sense the problem by reading
an unrendered pixel back out of the frame, then fixed the typo
in GLDrawableFactoryImpl.java that caused the error.

7 years agoAdd section for make/lib to cover new SWT blobs
Sven Gothel [Wed, 2 Feb 2011 05:05:05 +0000 (06:05 +0100)]
Add section for make/lib to cover new SWT blobs

7 years agoFix GLProfile tests: default is max-fixed-pipeline, use GL2 instead
Sven Gothel [Wed, 2 Feb 2011 04:58:00 +0000 (05:58 +0100)]
Fix GLProfile tests: default is max-fixed-pipeline, use GL2 instead

7 years agoFix SWT tests in due to changes, minor linux fix
Sven Gothel [Wed, 2 Feb 2011 04:57:16 +0000 (05:57 +0100)]
Fix SWT tests in due to changes, minor linux fix

7 years agoMerge branch 'swt_tests' into pulled
Sven Gothel [Wed, 2 Feb 2011 03:39:06 +0000 (04:39 +0100)]
Merge branch 'swt_tests' into pulled

7 years agoAdded two simple SWT unit tests.
Wade Walker [Wed, 2 Feb 2011 03:37:46 +0000 (04:37 +0100)]
Added two simple SWT unit tests.

Added a test that draws one triangle, using both the SWT
canvas and the AWT canvas with the SWT_AWT bridge. Also
added the SWT JARs for each platform to make/lib (since
that's where antlr.jar and junit.jar were stored). Modified
the make files to build and run the new tests.

7 years agoFix: Missed package rename
Sven Gothel [Tue, 1 Feb 2011 05:12:52 +0000 (06:12 +0100)]
Fix: Missed package rename

7 years agounit test for Bug464 added (cleaned CRLF/merged version; own text subpackage)
Domokun [Tue, 1 Feb 2011 04:42:50 +0000 (05:42 +0100)]
unit test for Bug464 added (cleaned CRLF/merged version; own text subpackage)

7 years agoBugfix (Bug 464 - TextRenderer useVertexArray was ignored)
Domokun [Tue, 1 Feb 2011 04:23:19 +0000 (05:23 +0100)]
Bugfix (Bug 464 - TextRenderer useVertexArray was ignored)

7 years agoTextRenderer: Fix imports / Add jogamp license
Sven Gothel [Tue, 1 Feb 2011 03:47:49 +0000 (04:47 +0100)]
TextRenderer: Fix imports / Add jogamp license

7 years agojunit glu: proper path and NOUI class suffix
Sven Gothel [Tue, 1 Feb 2011 03:27:20 +0000 (04:27 +0100)]
junit glu: proper path and NOUI class suffix

7 years agoJUnit tests for gluProject and gluUnproject
Julien Gouesse [Wed, 1 Dec 2010 18:47:11 +0000 (19:47 +0100)]
JUnit tests for gluProject and gluUnproject

7 years agoJUnit: Adding Test*NOUI* test pattern for unit test w/o any UI (AWT/NEWT)
Sven Gothel [Tue, 1 Feb 2011 03:21:26 +0000 (04:21 +0100)]
JUnit: Adding Test*NOUI* test pattern for unit test w/o any UI (AWT/NEWT)

7 years agoFixes the problem of high memory consumption in TextRenderer (single merged w/o white...
Julien Gouesse [Tue, 1 Feb 2011 03:12:57 +0000 (04:12 +0100)]
Fixes the problem of high memory consumption in TextRenderer (single merged w/o whitespace)

7 years agotest scripts..
Sven Gothel [Mon, 31 Jan 2011 16:50:38 +0000 (17:50 +0100)]
test scripts..

7 years agoJOGL change of default GLProfile order: GL4bc, GL3bc, GL2, GL2GL3, GL4, GL3, GL2ES2...
Sven Gothel [Mon, 31 Jan 2011 14:12:33 +0000 (15:12 +0100)]
JOGL change of default GLProfile order: GL4bc, GL3bc, GL2, GL2GL3, GL4, GL3, GL2ES2, GLES2, GL2ES1, GLES1

7 years agoFix: In case no shared resource is available, query the GLXVersion.
Sven Gothel [Mon, 31 Jan 2011 14:06:14 +0000 (15:06 +0100)]
Fix: In case no shared resource is available, query the GLXVersion.

7 years agoFix WindowsDummyWGLDrawable: onscreen && !pbuffer
Sven Gothel [Mon, 31 Jan 2011 06:43:27 +0000 (07:43 +0100)]
Fix WindowsDummyWGLDrawable: onscreen && !pbuffer

7 years agoGLCapabilities enhancements: Choosing, All-Available, Data Handling (X11, WGL and...
Sven Gothel [Mon, 31 Jan 2011 06:42:43 +0000 (07:42 +0100)]
GLCapabilities enhancements: Choosing, All-Available, Data Handling (X11, WGL and EGL)

- GLDrawableFactory exposes:
    public final List/*GLCapabilitiesImmutable*/ getAvailableCapabilities(AbstractGraphicsDevice device)

- GLCapabilities platform specialization containing native ids (XVisual/FBConfig, PFD, EGLConfig, ..)

- GLCapabilities setPbuffer(true) disables onscreen

- Capabilities setOnscreen(true) disables pbuffer

- Capabilities implements Comparable

- *Capabilities: enhanced 'toString(..)'

- CapabilitiesChooser.chooseCapabilities:
     'CapabilitiesImmutable[] available' -> 'List /*<CapabilitiesImmutable>*/ available'

- VersionApplet, GLCanvas.main, GLWindow.main, GLProfile/debug: dumps all available GLCaps

- WGLGLCapabilities: proper non-displayeble (pbuffer) pfdid handling

TODO: ES/EGL test with emulation

7 years agoversion bump: j2se 1.6.0_23, ant 1.8.2
Sven Gothel [Mon, 31 Jan 2011 06:10:50 +0000 (07:10 +0100)]
version bump: j2se 1.6.0_23, ant 1.8.2

7 years agoFix: GLX exception message / sorted imports
Sven Gothel [Mon, 31 Jan 2011 06:09:58 +0000 (07:09 +0100)]
Fix: GLX exception message / sorted imports

7 years agoFix bug 463 where gluScaleImage consumes all memory
Wade Walker [Tue, 25 Jan 2011 15:45:09 +0000 (09:45 -0600)]
Fix bug 463 where gluScaleImage consumes all memory

Changes the Type_Widget.java constructor to allocate a normal
buffer instead of a direct buffer. Apparently JVMs can't
allocate small direct buffers efficiently, and since Type_Widget
is called inside tight loops millions of times, we can't afford
to do it this way. This commit restores it to how it was in JOGL 1.

7 years agoAdd test case for bug 459 shader compile failure
Wade Walker [Sun, 16 Jan 2011 21:37:00 +0000 (15:37 -0600)]
Add test case for bug 459 shader compile failure

This commit adds a test case for bug 459, where
compilation of a vertex buffer fails on Windows
when the stencil cap is requested. This bug is
Windows-only; it works on Mac OS X and CentOS.

7 years agoCreated Eclipse project files.
Wade Walker [Tue, 11 Jan 2011 20:09:45 +0000 (14:09 -0600)]
Created Eclipse project files.

Created the Eclipse project files needed to build jogl.
These files don't contain any absolute paths, but they do
depend on the user setting up the JRE and Ant properly
inside Eclipse.

7 years agoFixed to work properly in the Ant junit.run.* tasks
wwalker [Tue, 4 Jan 2011 21:24:14 +0000 (15:24 -0600)]
Fixed to work properly in the Ant junit.run.* tasks

Fixed the texture load to come from a resource stream so it'll
work when run from inside a JAR by the junit.run.* Ant tasks.
Also modified the test JAR build step to include any resource
files in the test source code directory.

7 years agoAdded unit test for bug 417; bug already gone
wwalker [Fri, 31 Dec 2010 17:05:39 +0000 (11:05 -0600)]
Added unit test for bug 417; bug already gone

I added a unit test for bug 417 (error loading grayscale texture
with TextureIO). The test works fine, so the bug must have been
fixed unknowingly after submission.

7 years agoscripts: add new tests
Sven Gothel [Thu, 23 Dec 2010 05:34:11 +0000 (06:34 +0100)]
scripts: add new tests

7 years agoNB: Fix test folder (missed at src/junit -> src/test renaming)
Sven Gothel [Thu, 23 Dec 2010 05:33:50 +0000 (06:33 +0100)]
NB: Fix test folder (missed at src/junit -> src/test renaming)

7 years agoAMD/X11: Added AMD/X11 workaround
Sven Gothel [Thu, 23 Dec 2010 05:32:47 +0000 (06:32 +0100)]
AMD/X11: Added AMD/X11 workaround

On AMD/X11 the create/destroy sequence must be the same
even though this is agains the chicken/egg logic here ..

7 years agoFix WindowClosingProtocol test, using new AWTRobotUtils
Sven Gothel [Thu, 23 Dec 2010 05:32:01 +0000 (06:32 +0100)]
Fix WindowClosingProtocol test, using new AWTRobotUtils

7 years agoTestCloseNewtAWT: Use new AWTRobotUtil.closeWindow()
Sven Gothel [Thu, 23 Dec 2010 05:30:25 +0000 (06:30 +0100)]
TestCloseNewtAWT: Use new AWTRobotUtil.closeWindow()

7 years agoGLCanvas: lock/sync drawable usage ; remove destroyed refs (context, drawable, awtCon...
Sven Gothel [Thu, 23 Dec 2010 05:29:45 +0000 (06:29 +0100)]
GLCanvas: lock/sync drawable usage ; remove destroyed refs (context, drawable, awtConfig) ; Try create/destroy AbstractGraphicsDevice on EDT

7 years agoCleanup / Debug
Sven Gothel [Thu, 23 Dec 2010 05:27:26 +0000 (06:27 +0100)]
Cleanup / Debug

7 years agoNEWT: Add WindowListener.windowDestroyed() ; Remove WindowImpl.windowDestroyed()
Sven Gothel [Thu, 23 Dec 2010 05:26:47 +0000 (06:26 +0100)]
NEWT: Add WindowListener.windowDestroyed() ; Remove WindowImpl.windowDestroyed()

Add WindowListener.windowDestroyed()
  To expose a proper window lifecycle, ie destroy-notify and destroyed,
  this notification is added.
  This will be used at least in unit tests, where we verify destruction.

Remove WindowImpl.windowDestroyed():
  This native hook (planned to be called by native destroy notification)
  is unreliable or not supported for all platforms.
  NEWT relies on the pre destroy native hooks and handles the final
  destroy notification itself.

7 years agoAlways issue GLEventListener's initialization, if provoked by ctx creation
Sven Gothel [Wed, 22 Dec 2010 01:28:39 +0000 (02:28 +0100)]
Always issue GLEventListener's initialization, if provoked by ctx creation

7 years agoFix WGL bitmap regression while fixing it (96a0e0706258824c1dd524d4cbd7682a904b84f4)
Sven Gothel [Wed, 22 Dec 2010 00:57:40 +0000 (01:57 +0100)]
Fix WGL bitmap regression while fixing it (96a0e0706258824c1dd524d4cbd7682a904b84f4)

8 years agoJOGL/NEWT: Introduce WindowClosingProtocol (solves Bug/Request 444)
Sven Gothel [Sun, 19 Dec 2010 13:54:08 +0000 (14:54 +0100)]
JOGL/NEWT: Introduce WindowClosingProtocol (solves Bug/Request 444)

Similar to JFrame's closing behavior,
the following components window closing follow the new WindowClosingProtocol:
   - GLCanvas
   - GLJPanel
   - NEWT Window, GLWindow
   - NEWT NewtCanvasAWT

The implementation obeys either
 1) the user value set by this interface,
 2) an underlying toolkit set user value (JFrame, ..)
 3) or it's default, eg. {@link #DO_NOTHING_ON_CLOSE DO_NOTHING_ON_CLOSE} within an AWT environment.

If none of the above determines the operation,
this protocol default behavior {@link #DISPOSE_ON_CLOSE DISPOSE_ON_CLOSE} shall be used.

8 years agotest scripts .. VersionApplet
Sven Gothel [Sat, 18 Dec 2010 23:45:45 +0000 (00:45 +0100)]
test scripts .. VersionApplet

8 years agoAdding NVIDIA 'Threaded optimization' workaround/fix at initialization on Windows...
Sven Gothel [Sat, 18 Dec 2010 23:45:18 +0000 (00:45 +0100)]
Adding NVIDIA 'Threaded optimization' workaround/fix at initialization on Windows for javaws/applets.

It has been observed that for some combinations, eg:
     - Windows 7 64bit (other variants may apply too)
     - NVIDIA 8600M GT
     - 260.99

the NVIDIA setting of 'Threaded optimization' := 'auto' (default) causes the JVM to simply crash
in case of javaws and [jnlp] applets.

'Threaded Optimization' := 'off' works reliable

'Threaded Optimization' := 'on'  never works with javaws and applets on the above configuration

A user could workaround this by setting 'Threaded Optimization' := 'off',
however, this would disable many users on the spot,
since you cannot ask the average user for such a task, if she only wants to see a web page.

This patch 'fixes' the 'auto' mode by running the eager GL profile initialization
within a block of single CPU affinity:

  SetProcessAffinityMask(pid, 1);
  try {
    initProfilesForDeviceImpl(device);
  } finally {
    SetProcessAffinityMask(pid, sysValue);
  }

Hopefully we can remove this hack with a driver fix.
However this workaround is as little invasive as possible.

8 years agoGLDrawableFactory: Add getFactory(AbstractGraphicsDevice device)
Sven Gothel [Sat, 18 Dec 2010 23:29:04 +0000 (00:29 +0100)]
GLDrawableFactory: Add getFactory(AbstractGraphicsDevice device)

8 years agoFix GLProfile initProfilesForDevice and DEBUG ; Fix JoglVersion.getGLInfo
Sven Gothel [Sat, 18 Dec 2010 23:24:59 +0000 (00:24 +0100)]
Fix GLProfile initProfilesForDevice and DEBUG ; Fix JoglVersion.getGLInfo

GLProfile.initProfilesForDevice: use either desktop or egl factory on one device

GLProfile.DEBUG: Print proper factory instance, full device

JoglVersion.getGLInfo: Print only availability of used device, otherwise we could kick off initialization

8 years agoDebug/Cleanup: toString: print base classname only; Misc ..
Sven Gothel [Sat, 18 Dec 2010 23:16:19 +0000 (00:16 +0100)]
Debug/Cleanup: toString: print base classname only; Misc ..

8 years agoWindowsWGLContext: Proper var names, misc cleanup
Sven Gothel [Sat, 18 Dec 2010 02:36:51 +0000 (03:36 +0100)]
WindowsWGLContext: Proper var names, misc cleanup

8 years agoconvenient internal queries for shared
Sven Gothel [Sat, 18 Dec 2010 02:35:27 +0000 (03:35 +0100)]
convenient internal queries for shared

8 years agoGLCanvas: init drawable by paint/display makes the init sequence more equal for all...
Sven Gothel [Sat, 18 Dec 2010 02:34:50 +0000 (03:34 +0100)]
GLCanvas: init drawable by paint/display makes the init sequence more equal for all launch flavors (applet/javaws/..)

8 years agoNativeWindow Debug: Early stack trace info w/ thread name
Sven Gothel [Sat, 18 Dec 2010 02:34:05 +0000 (03:34 +0100)]
NativeWindow Debug: Early stack trace info w/ thread name

8 years agoVersion Applet as JavaWS
Sven Gothel [Sat, 18 Dec 2010 02:33:22 +0000 (03:33 +0100)]
Version Applet as JavaWS

8 years agoGLProfile: refine doc
Sven Gothel [Sat, 18 Dec 2010 02:30:23 +0000 (03:30 +0100)]
GLProfile: refine doc

8 years agodebug node: WindowsDummyWGLDrawable
Sven Gothel [Thu, 16 Dec 2010 23:16:32 +0000 (00:16 +0100)]
debug node: WindowsDummyWGLDrawable

8 years agoSharedResourceRunner: Expose convenient 'getShared()' w/o creation
Sven Gothel [Thu, 16 Dec 2010 23:16:13 +0000 (00:16 +0100)]
SharedResourceRunner: Expose convenient 'getShared()' w/o creation

8 years agodebug: print thread name only; simplify mapGLVersion(..) call
Sven Gothel [Thu, 16 Dec 2010 23:15:31 +0000 (00:15 +0100)]
debug: print thread name only; simplify mapGLVersion(..) call

8 years agojnlp: remove version attribute from extension ref, which would require the server...
Sven Gothel [Thu, 16 Dec 2010 23:14:47 +0000 (00:14 +0100)]
jnlp: remove version attribute from extension ref, which would require the server side jnlp/version protocol
version applet: remove noddraw

8 years agoFix jogl-core.jnlp; Add/Fix Launcher Version Applet
Sven Gothel [Thu, 16 Dec 2010 06:13:36 +0000 (07:13 +0100)]
Fix jogl-core.jnlp; Add/Fix Launcher Version Applet

8 years agoVersion Applet: set GLCanvas size, otherwise it won't realize GL drawable
Sven Gothel [Thu, 16 Dec 2010 05:00:36 +0000 (06:00 +0100)]
Version Applet: set GLCanvas size, otherwise it won't realize GL drawable

8 years agoAdd missing jnlp/html files for Version Applet: a7398aac183762174b0608ad7f83d9130c61523e
Sven Gothel [Thu, 16 Dec 2010 04:09:10 +0000 (05:09 +0100)]
Add missing jnlp/html files for Version Applet: a7398aac183762174b0608ad7f83d9130c61523e

8 years agoFix WGL Bitmap Offscreen Drawable
Sven Gothel [Thu, 16 Dec 2010 03:18:15 +0000 (04:18 +0100)]
Fix WGL Bitmap Offscreen Drawable

In conjunction with the gluegen investigation (gluegen: fbdedff789077b5ffa07811590f771b6f9a4f3a7),
on Windows the type LONG is always 32bit, hence we have to declare:
  typedef __int32             LONG;

Besides, WGL_DRAW_TO_PBUFFER_ARB and WGL_DRAW_TO_BITMAP_ARB were missing in the
WGL/ARB attribute query, and the latter was not set in caps -> attributes.

Added fail safe exception for null chosen caps, if X11/WGL algo fails to determine.

8 years agofix junit/test path
Sven Gothel [Wed, 15 Dec 2010 22:13:16 +0000 (23:13 +0100)]
fix junit/test path

8 years agoAdd Version Applet
Sven Gothel [Wed, 15 Dec 2010 11:32:37 +0000 (12:32 +0100)]
Add Version Applet

8 years agoAdd version tag in jnlp files
Sven Gothel [Wed, 15 Dec 2010 04:12:00 +0000 (05:12 +0100)]
Add version tag in jnlp files

8 years agofinal cleanup test results archive :)
Sven Gothel [Wed, 15 Dec 2010 03:57:29 +0000 (04:57 +0100)]
final cleanup test results archive :)

8 years agofinal cleanup test results archive :)
Sven Gothel [Wed, 15 Dec 2010 03:19:35 +0000 (04:19 +0100)]
final cleanup test results archive :)

8 years agotest-zip-archive cleanup
Sven Gothel [Wed, 15 Dec 2010 02:49:49 +0000 (03:49 +0100)]
test-zip-archive cleanup

8 years agoJAWTUtil: Fix case when init is run on AWT EDT (which is odd, ie not using GLProfile...
Sven Gothel [Wed, 15 Dec 2010 02:39:35 +0000 (03:39 +0100)]
JAWTUtil: Fix case when init is run on AWT EDT (which is odd, ie not using GLProfile.initSingleton(..)

8 years agodon't remove files @ test-zip-archive
Sven Gothel [Wed, 15 Dec 2010 02:25:53 +0000 (03:25 +0100)]
don't remove files @ test-zip-archive

8 years agocleanup declare.common/init
Sven Gothel [Wed, 15 Dec 2010 02:19:09 +0000 (03:19 +0100)]
cleanup declare.common/init

8 years agomerge test.run.setup with init
Sven Gothel [Wed, 15 Dec 2010 02:17:29 +0000 (03:17 +0100)]
merge test.run.setup with init

8 years agomkdir after delete: test results folder
Sven Gothel [Wed, 15 Dec 2010 02:07:12 +0000 (03:07 +0100)]
mkdir after delete: test results folder

8 years agoarchive test results
Sven Gothel [Wed, 15 Dec 2010 01:57:02 +0000 (02:57 +0100)]
archive test results

8 years agoFix jnlp files jar names and removed main attribute of jar ref
Sven Gothel [Wed, 15 Dec 2010 01:56:37 +0000 (02:56 +0100)]
Fix jnlp files jar names and removed main attribute of jar ref

<module>.[win|x11|osx].jar  -> <module>.os.[win|x11|osx].jar

nativewindow.os.windows.jar -> nativewindow.os.win.jar
newt.broadcomegl.jar        -> newt.hw.broadcomegl.jar
newt.intelgdl.jar           -> newt.hw.intelgdl.jar

removed non existing jnlp file for config gl2es12.

8 years agoonly kick off gluegen base.compile
Sven Gothel [Mon, 13 Dec 2010 18:54:33 +0000 (19:54 +0100)]
only kick off gluegen base.compile

8 years agoCleanup (removed obsolete class / imports) ; Cg fix
Sven Gothel [Mon, 13 Dec 2010 05:27:55 +0000 (06:27 +0100)]
Cleanup (removed obsolete class / imports) ; Cg fix

8 years agocommon folder etc: junit -> test
Sven Gothel [Mon, 13 Dec 2010 02:44:10 +0000 (03:44 +0100)]
common folder etc: junit -> test

8 years agotests: test.auto.run (junit.run) and test.manual.run
Sven Gothel [Mon, 13 Dec 2010 02:22:08 +0000 (03:22 +0100)]
tests: test.auto.run (junit.run) and test.manual.run

8 years agoCleanup test/junit structure. com.jogamp.test -> com.jogamp.opengl.text; Compile...
Sven Gothel [Mon, 13 Dec 2010 01:26:48 +0000 (02:26 +0100)]
Cleanup test/junit structure. com.jogamp.test -> com.jogamp.opengl.text; Compile posted Issue* Bug* snippets

8 years agoFix API doc: firstUIActionOnProcess
Sven Gothel [Sun, 12 Dec 2010 17:43:36 +0000 (18:43 +0100)]
Fix API doc: firstUIActionOnProcess

8 years agoNewt: Add com.jogamp.newt.util.* package(s) to public javadoc
Sven Gothel [Sun, 12 Dec 2010 08:43:47 +0000 (09:43 +0100)]
Newt: Add com.jogamp.newt.util.* package(s) to public javadoc

8 years agoNativeWindow: Move RegisteredClass to private impl package
Sven Gothel [Sun, 12 Dec 2010 08:38:18 +0000 (09:38 +0100)]
NativeWindow: Move RegisteredClass to private impl package

8 years agoGLJPanel/GLPbufferImpl: destroy pbuffer reentrance fix; disable device close (X11...
Sven Gothel [Sun, 12 Dec 2010 08:21:16 +0000 (09:21 +0100)]
GLJPanel/GLPbufferImpl: destroy pbuffer reentrance fix; disable device close (X11 error on nvidia); reenable GLJPanel test

8 years agoAdding misc NEWT docs/notes
Sven Gothel [Sun, 12 Dec 2010 06:55:13 +0000 (07:55 +0100)]
Adding misc NEWT docs/notes

8 years agoscript updates
Sven Gothel [Sun, 12 Dec 2010 06:54:24 +0000 (07:54 +0100)]
script updates

8 years agomakeCurrent/release within closures
Sven Gothel [Sun, 12 Dec 2010 06:54:08 +0000 (07:54 +0100)]
makeCurrent/release within closures

8 years agoGLProfile: initialize 1st, debug info later.
Sven Gothel [Sun, 12 Dec 2010 06:53:37 +0000 (07:53 +0100)]
GLProfile: initialize 1st, debug info later.

Debug shall not change the startup behavior

8 years agoJAWTUtil: Eager initialization of AWT desktop props
Sven Gothel [Sun, 12 Dec 2010 06:52:54 +0000 (07:52 +0100)]
JAWTUtil: Eager initialization of AWT desktop props

Triggers immediate AWT property resolution.
Would reproduce any javaws / AWT race condition.

8 years agoWindows RegisterClass: Use new RegisteredClassFactory (window class), Misc.
Sven Gothel [Sun, 12 Dec 2010 06:51:06 +0000 (07:51 +0100)]
Windows RegisterClass: Use new RegisteredClassFactory (window class), Misc.

This solves the issue when an applet is started/stop and started again,
or another applet runs in the same JVM.
Also soves the issue for multiple JVMs.

RegisteredClassFactory can be instanced to manage one shared window class,
currently in use for GDI's dummy window and NEWT.
A class base name and a window proc handle must be passed in the factory cstr.

Before registering, the class is tested if already exists,
eg another applet in the same JVM.
If registration fails, the class name will iterate until successful or MAX_INT reached,
eg if multiple JVMs are running.

Added NativeWindow Common Native Code.

8 years agoAdd javaws test scripts
Sven Gothel [Sat, 11 Dec 2010 05:42:20 +0000 (06:42 +0100)]
Add javaws test scripts

8 years agoGeneralize SharedResourceRunner and use/impl it for WGL as well (besides X11).
Sven Gothel [Sat, 11 Dec 2010 05:41:00 +0000 (06:41 +0100)]
Generalize SharedResourceRunner and use/impl it for WGL as well (besides X11).

It seems necessary to use off thread shared resources (dummy window, drawable and context)
to keep them alive in Java Webstart.

8 years agolittle TODO update
Sven Gothel [Fri, 10 Dec 2010 04:32:41 +0000 (05:32 +0100)]
little TODO update

8 years agoGLCanvas: sync drawable access; flush awtConfig at remove;
Sven Gothel [Fri, 10 Dec 2010 04:31:51 +0000 (05:31 +0100)]
GLCanvas: sync drawable access; flush awtConfig at remove;

8 years agoGDI: Add GetObjectType(..)
Sven Gothel [Fri, 10 Dec 2010 04:28:15 +0000 (05:28 +0100)]
GDI: Add GetObjectType(..)

8 years agoFIX gears demo: set lists to 0 at dispose
Sven Gothel [Fri, 10 Dec 2010 04:27:53 +0000 (05:27 +0100)]
FIX gears demo: set lists to 0 at dispose

8 years agoNEWT: Minor cleanup ; Debug setVisible message in issuing thread
Sven Gothel [Fri, 10 Dec 2010 04:27:17 +0000 (05:27 +0100)]
NEWT: Minor cleanup ; Debug setVisible message in issuing thread

8 years agoMinor test cleanup
Sven Gothel [Fri, 10 Dec 2010 04:26:44 +0000 (05:26 +0100)]
Minor test cleanup

8 years agoWGL/DummyWindow: Roll back GetDC/ReleaseDC via lock/unlock surface, redundant, since...
Sven Gothel [Fri, 10 Dec 2010 04:26:01 +0000 (05:26 +0100)]
WGL/DummyWindow: Roll back GetDC/ReleaseDC via lock/unlock surface, redundant, since it's static DC

8 years agoCleanup GLGraphicsConfiguration[Factory] implementations (X11/WGL)
Sven Gothel [Fri, 10 Dec 2010 04:24:32 +0000 (05:24 +0100)]
Cleanup GLGraphicsConfiguration[Factory] implementations (X11/WGL)

- AWT/WGL:
    - Using sun.awt.Win32GraphicsConfig via reflection, if supported, else we may fail.
    - Preselection of PFD as follows:
      - 1st choice is to create our own AWT GraphicsConfig (GC) based on PFD/GLCaps,
        ignoring WGL_SUPPORT_GDI_ARB, PFD_SUPPORT_GDI
      - 2nd choice is to use AWT PFD pool of GC's
      - else we fail -> use NewtCanvasAWT instead (TODO: Other JDK/AWT implementations ?)
    - Set PFD will be performed at setRealized(..)

- SharedContext (X11/WGL) is synchronized to allow multithreaded access, if required

- Simplified and unified (X11/WGL) GraphicsConfigurationFactory

- WGL 'external' drawables will be determined with given arguments right away

8 years agoNativeWindow: Expose lock test/get methods and constructor with HDC
Sven Gothel [Thu, 9 Dec 2010 22:52:01 +0000 (23:52 +0100)]
NativeWindow: Expose lock test/get methods and constructor with HDC

8 years agoJOGL: GLContextImpl's updateGLXProcAddressTable(..) only uses device as a key for...
Sven Gothel [Thu, 9 Dec 2010 22:42:55 +0000 (23:42 +0100)]
JOGL: GLContextImpl's updateGLXProcAddressTable(..) only uses device as a key for cached table, since
the GLX/WGL/etc function entry pointers are GL profile agnostic.

Hence createContextARBImpl(..) (WGL/GLX) does not need a sharedContext,
but just can issue the inexpensive updateGLXProcAddressTable(..) call.

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