Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Minor edits: remove redundancies | Sven Gothel | 2011-11-09 | 11 | -15/+12 |
| | |||||
* | NativeWindow: Add accessor interfaces NativeSurfaceHolder and NativeWindowHolder | Sven Gothel | 2011-11-09 | 8 | -6/+115 |
| | | | | | | | | | | | | | | | | | - NativeSurfaceHolder interface allows access to it's implementation's NativeSurface reference. - NativeWindowHolder interface allows access to it's implementation's NativeWindow reference. Implement or extend interface w/ these accessors whereever it seems fit: - NEWT Window - GLDrawable These accessors allow lower layers to retrieve the NativeSurface/Window instance w/o knowledge of the 'upper' frameworks, ie. NativeWindow/JOGL or JOGL/NEWT. Commited in followups (due to mixed semantical changes in those files): - JAWTWindow - NewtCanvasAWT - Some NEWT impl. | ||||
* | OS X Layered View: Part2 Java/Native MacOSXCGLContext / MacOSXPbufferCGLContext | Sven Gothel | 2011-11-09 | 4 | -83/+329 |
| | | | | | | | | | | | | | | | | | | | | | | | Undo 368cbf4462d7f3635c1ef4497424c360b5ccc203: - "use SurfaceUpdateListener() to notify layer", simply use MacOSXCGLContext's swap impl. MacOSXCGLContext: - NSOpenGLImpl.create(): - issues createNSOpenGLLayer() using tex-size (maybe POT) as args - attaches the NSOpenGLLayer to the JAWT layered surface host - NSOpenGLImpl.setSwapInterval() propagates interval to our NSOpenGLLayer impl. - NSOpenGLImpl.swapBuffer() (layer case): - waits for v-sync if enabled (v-sync), or until native 'draw' is finished (tearing) using our pthread/ NSOpenGLLayer synchronization. The latter uses CADisplayLink or CVDisplayLinkRef for v-sync synchronization. - flushes our local ctx - triggers our NSOpenGLLayer to 'draw' - MacOSXPbufferCGLContext create() sets the texture size independently of pbuffer size (POT/NPOT) | ||||
* | Minor edits: Remove unused code and warnings | Sven Gothel | 2011-11-08 | 2 | -14/+3 |
| | |||||
* | FPSCounter: Use Java 1.5 TimeUnit | Sven Gothel | 2011-11-08 | 1 | -2/+4 |
| | |||||
* | GLContext: Intendation + Use generics (remove warnings) | Sven Gothel | 2011-11-08 | 1 | -22/+27 |
| | |||||
* | OSX: SharedResource add knowledge of NPOT-, RECT- and Float-Texture ↵ | Sven Gothel | 2011-11-08 | 4 | -98/+132 |
| | | | | | | features, used by pbuffer drawable before a current context. - Also extract getNextPowerOf2() -> GLBuffers (remove redundancy) | ||||
* | JOGL: GLBase Add 'isNPOTTextureAvailable()' for convenience | Sven Gothel | 2011-11-08 | 3 | -3/+17 |
| | |||||
* | JOGL: Add 'struct timespec' (POSIX) utils for native time handling | Sven Gothel | 2011-11-08 | 3 | -0/+86 |
| | |||||
* | OS X Layered View: Use pbuffer method (pbuffer w/ dbl buffer) | Sven Gothel | 2011-11-06 | 14 | -227/+454 |
| | | | | | | | | | - attributes +NSOpenGLPFANoRecovery +NSOpenGLPFAAccelerated - use SurfaceUpdateListener() to notify layer - swapBufferImpl() adapt to 0038e2d41825c22bdd18a7b86a8229a3fab674a3 - pbuffer: don't enforce POT tex-size to surface size, but pbuffer only - FIXME: Check POT pbuffer/tex-size for X11/Win32/.. ! - | ||||
* | JOGL *Drawable swapBufferImpl() cleanup: Don't force swap-buffer off for ↵ | Sven Gothel | 2011-11-06 | 13 | -95/+27 |
| | | | | offscreen/pbuffer, but respect GLDrawableImpl's decision (double-buffer) | ||||
* | JOGL/Offscreen-Drawable: Use setRealized(boolean) protocol for offscreen/pbuffer | Sven Gothel | 2011-11-06 | 7 | -42/+74 |
| | | | | This allows allowing updateHandle()/destroyHandle() to be called. | ||||
* | NativeWindow/JOGL: NativeSurface adds add/remove SurfaceUpdateListener | Sven Gothel | 2011-11-06 | 9 | -104/+157 |
| | | | | - SurfaceUpdateHelper contains impl. used by NativeSurface implementations. | ||||
* | Impl layeredSurface (java/native): | Sven Gothel | 2011-11-05 | 9 | -69/+314 |
| | | | | | | | | - OSXUtil: NSView backing creation - OSXUtil: AttachJAWTSurfaceLayer - MacOSXCGLContext.create(): Attach NSOpenGLLayer if layered - MacOSXCGLDrawable.updateHandle(): if direct: add NSView backing layer - MacOSXCGLDrawable: Add getNSViewHandle() to distinguish between NSView and none (CGL/pbuffer) | ||||
* | Cleanup ; JAWT* version flag setting based whether | Sven Gothel | 2011-11-05 | 9 | -39/+73 |
| | | | | | | | | | | Cleanup - use Platform OS_TYPE - .. JAWT* version flag - if JAWTWindow is Applet, attempt offscreenLayer if avail - .. | ||||
* | OSX: CGL type cleanup ; layeredSurface impl. | Sven Gothel | 2011-11-05 | 14 | -191/+397 |
| | | | | | | | | | - Use proper OSX types for NS/CGL prototypes (gluegen) and impl. - Impl layeredSurface (native): - OSXUtil: NSView backing creation - OSXUtil: AttachJAWTSurfaceLayer - CGL: NSOpenGLLayer type impl. and hook | ||||
* | Merge branch 'master' into osx_jawt_calayers | Sven Gothel | 2011-10-29 | 6 | -9/+74 |
|\ | |||||
| * | test script | Sven Gothel | 2011-10-29 | 1 | -3/+7 |
| | | |||||
| * | Test: More 'layouting' in NewtCanvasAWT test case | Sven Gothel | 2011-10-29 | 1 | -0/+8 |
| | | |||||
| * | Nativewindow/OSX: GetLocationOnScreen() must use [win frame] for window height. | Sven Gothel | 2011-10-29 | 1 | -3/+7 |
| | | |||||
| * | NEWT/Applet: Add 'newt.debug.Applet' ; Be more verbose in DEBUG Mode; | Sven Gothel | 2011-10-29 | 2 | -2/+51 |
| | | |||||
| * | Win32: Reuse Platform's OS VersionNumber | Sven Gothel | 2011-10-29 | 1 | -1/+1 |
| | | |||||
* | | MacOsX/JAWT_SurfaceLayers/CALayers: Kick off / JAWT_getAWT() CALAYER version ↵ | Sven Gothel | 2011-10-29 | 7 | -23/+149 |
|/ | | | | support. | ||||
* | NEWT/OSX: Using NewtView softLock ; Adding debug info to solve assertion: ↵ | Sven Gothel | 2011-10-27 | 1 | -43/+86 |
| | | | | | | | | | | | | | 'NSThemeFrame lockFocus' NSView.m:6053 - surfaceLock/Unlock: Use NewtView softLock - createWindow: - enable lock/unlockFocus to force realization of view - add retainCount in dbg-msg - clarify changeContentView | ||||
* | NEWT/OSX NewtView: Add 'soft' pthread locking impacts: ↵ | Sven Gothel | 2011-10-27 | 2 | -14/+78 |
| | | | | | | | | needsDisplay/displayIfNeeded, .. - Add 'soft' pthread locking (blockin) - impacts: needsDisplay/displayIfNeeded, .. - needsDisplay/displayIfNeeded also respects destroyNotifySend (ignore action if set) | ||||
* | NEWT/OSX: Refine comment for native requestFocus(); Remove warning | Sven Gothel | 2011-10-26 | 1 | -2/+5 |
| | |||||
* | NEWT/OSX: Can't use sending key/mouse directly to WindowImpl, deadlock .. ↵ | Sven Gothel | 2011-10-26 | 1 | -1/+7 |
| | | | | see comment | ||||
* | NEWT/OSX: Add missing sendKeyEvent(..) specialization to produce the keyCode ↵ | Sven Gothel | 2011-10-26 | 1 | -1/+10 |
| | | | | (like enqueueKeyEvent()) | ||||
* | GLProfile: Add GLProfile getImpl(); Use getImpl() for getGL2ES[12](..), ↵ | Sven Gothel | 2011-10-26 | 2 | -72/+71 |
| | | | | dropping GL2ES[12] lists | ||||
* | OSX: Enable OpenGL profile support, ie OpenGL 3.2 -> GL3 for OSX >= 10.7 | Sven Gothel | 2011-10-26 | 6 | -153/+376 |
| | |||||
* | Minor edits / cleanup of GLContext* | Sven Gothel | 2011-10-26 | 6 | -26/+13 |
| | |||||
* | MacOSX: Pull down (and fix releaseContext) NSOPENGL/CGL mode/impl, fixes SWT ↵ | Sven Gothel | 2011-10-25 | 13 | -608/+515 |
| | | | | usage and FBOMRT | ||||
* | Add debug version of etc/test.* | Sven Gothel | 2011-10-24 | 2 | -0/+70 |
| | |||||
* | Add debug-all commented out line | Sven Gothel | 2011-10-24 | 1 | -0/+2 |
| | |||||
* | Tests: AWT EDT: invokeLater(..) -> invokeAndWait(..) for a more predictable ↵ | Sven Gothel | 2011-10-23 | 10 | -72/+120 |
| | | | | workflow | ||||
* | Test: AWTRobotUtil TO 1s -> 2s | Sven Gothel | 2011-10-23 | 1 | -1/+1 |
| | |||||
* | Partially revert cba9a070f9649bec42627631d393963d548e320c: Skip ↵ | Sven Gothel | 2011-10-23 | 2 | -23/+23 |
| | | | | focusAction() and native focus request on X11/Windows. On both platforms it's not required (proper focus traversion) and AWT would deadlock on Windows | ||||
* | NEWT/ScreenMode: Make getCurrenctScreenMode..() more fail proof in case the ↵ | Sven Gothel | 2011-10-23 | 2 | -15/+31 |
| | | | | (native) impl. doesn't work. | ||||
* | Proper self containing NV Cg location | Sven Gothel | 2011-10-22 | 10 | -8/+9 |
| | |||||
* | test script | Sven Gothel | 2011-10-22 | 1 | -4/+2 |
| | |||||
* | Newt/OSX: Disable VERBOSE | Sven Gothel | 2011-10-22 | 1 | -1/+1 |
| | |||||
* | Test/Focus: Add sleep for manual focus tests | Sven Gothel | 2011-10-22 | 2 | -1/+11 |
| | |||||
* | Test/AWTRobotUtil: Proper titlebar location (using insets) ; Real UI/Robot ↵ | Sven Gothel | 2011-10-22 | 1 | -31/+37 |
| | | | | requestFocus impl. | ||||
* | NEWT/Native RequestFocus: Even if owning focus, run the focusAction() call ↵ | Sven Gothel | 2011-10-22 | 3 | -34/+35 |
| | | | | incl. native focus request (X11, Windows, OSX) | ||||
* | NewtCanvasAWT: Cleanup / Remove FIXME tag (impl. is ok) | Sven Gothel | 2011-10-22 | 1 | -6/+2 |
| | |||||
* | NEWT/Test FocusEventCountAdapter: Detailed test whether focus gained/lost | Sven Gothel | 2011-10-22 | 6 | -60/+79 |
| | |||||
* | NEWT/MacOSX: Fix resignKeyWindow super call. Summarize ↵ | Sven Gothel | 2011-10-22 | 2 | -44/+15 |
| | | | | sendFocusLost/sendFocusGained -> focusChanged | ||||
* | Test/Ruler/ScreenMode: Validate whether current ScreenMode exists | Sven Gothel | 2011-10-22 | 1 | -1/+8 |
| | |||||
* | NEWT/ScreenMode: If unimplemented have at least current mode in list. ↵ | Sven Gothel | 2011-10-22 | 7 | -119/+121 |
| | | | | Current mode uses ScreenSize w/ dummy values if unimplemented. | ||||
* | Cleanup JARs: Add jogl_cg native jar (atomic only); Move newt.event.jar to ↵ | Sven Gothel | 2011-10-21 | 2 | -9/+18 |
| | | | | atomic. |