summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* MacOSX: Always release ctx on main thread (offscreen was frozen as well); ↵Sven Gothel2011-10-1310-69/+33
| | | | | | Cleanup Warnings and OSX ContextUpdater -
* MacOSX: Fix shared ctx release [onMainThread]; Make GLContextShareSet ↵Sven Gothel2011-10-137-213/+203
| | | | | | | | | | | | | | | | | lifecycle deterministic; Remove warnings Fix shared ctx release [onMainThread] - Releasing the shared contexts caused a freeze of about 10s from one of the shared release operations. [NSOpenGLContext release] - Thorough triage concluded the workaround to release the shared ctx on the main thread. - Using enhanced GLContextShareSet, see below Make GLContextShareSet lifecycle deterministic - Programmatically control the lifecycle of tracked shared ctx allows us using 'hard' references. - Features queries for isShared() and ofc unregister a share set if all are destroyed. Remove warnings - MacOSXWindowSystemInterface.m used 'long', where 'GLint' was requested.
* TestParenting03AWT: Add manual code to disable 2nd GLWindow for internal ↵Sven Gothel2011-10-131-21/+38
| | | | testing (def.: enabled)
* NEWT/OSX: Fix resize behavior / Cleanup coordinate transormation ↵Sven Gothel2011-10-133-51/+86
| | | | | | | | | | | | (client-space/top-level, child/parent) At resizing a perent window w/ a NEWT OSX child, the window position needs to be updated since it's absolute. Re-adding sending *Changed notifications via the appropriate WindowImpl methods. Turns out they are missing in some parent/child situations (fullscreen for example). Native getLocationOnScreen0(..) queries totalHeight by it's own to have correct values.
* NEWT: Filter Window focusChanged() and visibleChanged() [test if value changed]Sven Gothel2011-10-131-12/+16
|
* GLCanvas / GLWindow: Change 'manual' resize/repaint animation filterSven Gothel2011-10-133-3/+11
| | | | | | We not only shall skip windowing system triggered repaint if another animation thread is running, but also if the current thread is the animator thread. This keeps the animator intervals stable while resizing.
* JOGL/OSX: Properly utilize NSOpenGLContext update() via ContextUpdater, ↵Sven Gothel2011-10-136-41/+112
| | | | | | | | | | | | | | | which only holds the 'update' state now. Avoid calling updater() for every makeCurrent(), but if view's frame has changed only. This solves the pixel flickering experienced on OSX. - GLContextImpl:update() -> drawableUpdatedNotify() w/ comments - ContextUpdater holds context, view, old view frame and the update state. It doesn't issue NSOpenGLContext update() by itself, but allows querying and clearing the update flag. - MacOSXOnscreenCGLContext impl drawableUpdatedNotify() - register via ContextUpdater, and use it if available.
* NativeWindow/OSX: Use screen of windowSven Gothel2011-10-121-3/+2
|
* NEWT/OSX MacWindow: Use screen of windowSven Gothel2011-10-121-1/+1
|
* Test Shared - Window Positioning: don't assume req pos. is realized, use rel ↵Sven Gothel2011-10-124-31/+64
| | | | positions to 1st window
* Newt/OSX: Fix top/child positioning, positionChanged(), rely on native ↵Sven Gothel2011-10-124-50/+120
| | | | | | | | | | | | pos/size notifications Newt/MacWindow - remove redundant manual window-move/set-size code - Use local getLocationOnScreen(..), fixes positionChanged(..) - setFrameTopLeftPoint(..) use totalHeight (w/ insets) - create: don't 'retain' the window reference (ref counter) - close: release view, - cache insets - to be used @ create
* OSX Minor Cleanups: ctx delete note (freeze when shared ctx), Better ↵Sven Gothel2011-10-123-14/+16
| | | | MainThread Thread name[s]
* NEWT OSX: Disable native VERBOSITYSven Gothel2011-10-121-1/+1
|
* Test: Add AWT/GLCanvas transparency testSven Gothel2011-10-121-0/+163
|
* Test Util NEWGLContext: Add assertionsSven Gothel2011-10-121-2/+3
|
* NEWTCanvasAWT: Add AWT GraphicsConfiguration in constructor, allowing ↵Sven Gothel2011-10-121-0/+16
| | | | transparency
* FBO MRT Test: Disable OSX, since it causes an SIGSEGV (Bus Error/Illegal ↵Sven Gothel2011-10-121-2/+9
| | | | Memory Access) @ glDrawArrays()
* Fix Nativewindow GetLocationOnScreen OSX impl. - Transform OSX origin ↵Sven Gothel2011-10-122-4/+15
| | | | bottom-left to our top-left origin.
* NEWT Parenting Tests: Run all AWT modification call's on AWT EDT as the spec ↵Sven Gothel2011-10-127-174/+327
| | | | | | demands; Add missing frame.validate() after change. This is esential for OSX, but may also cause an undefined state on other platforms.
* NEWT/OSX: Fix erroneous child Window position and top-parent visibilitySven Gothel2011-10-113-74/+91
| | | | | | | | | | | | | | | | | - Regardless whether the window is a top-level or child window, we set it's position w/ absolut left-bottom coordinated. To do so even for an AWT parent component, we retrieve the screen position by traversing through the AWT tree and adding up each parent's rel. position, since the native view only reflects the AWT frame. Note: OSX does not use native views for each AWT component. - In case we reparent child -> top, we cannot orderOut() the ex parent, but need to just call orderBack(..), otherwise the whole ex-parent frame gets hidden. - In case we close a child window (and reparent child -> top), we need to remove the parent/child relation and orderOut(..) before close(..), otherwise the window artifact is left behind.
* NEWT Pointer Mods: Propagate 'confined' and 'invisible' to modifier mask of ↵Sven Gothel2011-10-117-36/+90
| | | | | | | | | | InputEvent (Mouse) ; Test confined navigation w/ GearsES2 InputEvent adds new MASK values: CONFINED_MASK and INVISIBLE_MASK, set at event creation allowing convenient testing of these mods. GearsES2 demonstrates the confined navigation testing the CONFINED_MASK and if having his mode acting on mouseMoved(..) and reset the mouse position.
* Fix HowToBuildSven Gothel2011-10-101-2/+3
|
* NEWT Pointer Feature: Add Windows impl. ; Fix test (warp action) ; Minor ↵Sven Gothel2011-10-108-17/+138
| | | | cleanup in X11
* NEWT: Add pointer features: visibility, confined and warp (move)Sven Gothel2011-10-108-51/+284
| | | | | | | | | | | | | | | visibility: - set pointer visible or invisible confined: - confine pointer to window, or not warp: - set mouse position within the window Implemented for X11, tested manually with TestGearsES2NEWT (see code for action keys). TODO: Windows, MaxOSX and Android (limited)
* DefaultGLCapabilitiesChooser: Punish sample extension mismatch also if req ↵Sven Gothel2011-10-091-2/+1
| | | | == default && req != given
* Generalize sample extension in GLCapabilities*, currently NV_coverage_sample ↵Sven Gothel2011-10-086-73/+75
| | | | is respected in EGL
* EGL: Fall back to NV_coverage_sample if EGL MSAA/FSAA is n/aSven Gothel2011-10-082-0/+16
|
* minor editingSven Gothel2011-10-082-5/+1
|
* GLWindow/GLDrawableHelper: Adding experimental notion of skipping GL context ↵Sven Gothel2011-10-089-29/+107
| | | | | | | | | | | | | release for a specific thread - marked deprecated - used to perf measure situation on omap3, ie figuring out where the low perf. in GearsES2 comes from, our core JOGL code or the GL usage. Turns out it's the GL usage itself, ie the shader - good. - calls are commented out in the demos
* Merge remote-tracking branch 'remotes/rsantina/master'Sven Gothel2011-10-071-12/+21
|\
| * Merge branch 'master' of git://github.com/sgothel/joglRami Santina2011-10-0625-129/+334
| |\
| * | GraphUI: flip y coordsRami Santina2011-10-061-1/+1
| | |
| * | GraphUI demo: add x and y translation for 1 pointerRami Santina2011-10-061-12/+21
| | |
* | | Android Demos GearsES2 + RedSquareES2: Add tracing .. and no vsync (doesn't ↵Sven Gothel2011-10-076-27/+70
| | | | | | | | | | | | work)
* | | Android Elektron/RedSquare use bpp 5/6/5Sven Gothel2011-10-075-5/+16
| | |
* | | GLArrayData<VBO>: Add GLArrayHandlerFlat ; Update VBO name to interleaved ↵Sven Gothel2011-10-0710-37/+240
| | | | | | | | | | | | | | | | | | | | | subarrays - Add GLArrayHandlerFlat gives better distinction of semantics - update sub-array VBO name, if parent's interleaved array initializes it.
* | | Clarify/Fix GLArrayDataEditable:padding() - no use case yet .. wellSven Gothel2011-10-072-5/+6
| | |
* | | Android test launcher manifest: add external storrage permission for traceSven Gothel2011-10-071-0/+2
| | |
* | | NEWT/Android: Fix setting 'format'Sven Gothel2011-10-071-11/+12
| | |
* | | PMVMatrix: Defaults from direct NIO -> array-backed non-direct NIO: Reduced ↵Sven Gothel2011-10-074-195/+346
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | cycles 45% -> 5% (from GearsES2 100%) - NIO direct access from Java is expensive - default is now array-backed non-direct NIO, which guarantees array useage for Java computation (especially the inverse calculation) - only update Mvi and Mvit if requested in the first place - moved all local matrices to float[]
* | NEWT/Android: respect isUndecorated() and custom window size.Sven Gothel2011-10-062-38/+43
| | | | | | | | TODO: custom position and change position ?!
* | NEWT/Window/setVisible: Remove setVisible(..) fast path - Always set ↵Sven Gothel2011-10-061-8/+2
| | | | | | | | | | | | | | visible=true, even if size==0 We need to earmark visible=true in case the native window could not be created, even if the size is currently 0.
* | NEWT/Android: Add TRANSLUCENT feature / Demo: 'GearsES2T'Sven Gothel2011-10-068-4/+139
| |
* | test scriptSven Gothel2011-10-061-2/+2
| |
* | ES2 Test Update: Add RedSquareES2 mouse events, toggle: fullscreen / ↵Sven Gothel2011-10-064-15/+61
| | | | | | | | | | | | SwapInterval - turns out that on android, we cannot run w/o v-sync .. (?)
* | ShaderUtils: Use glShaderSource variant w/ NIO only argsSven Gothel2011-10-061-3/+5
| |
* | NEWT/Android: Add BUTTON1 for one-pointer eventsSven Gothel2011-10-061-2/+4
| |
* | EGL: In case a nativeVisualID is given to match, but none visual IDs are ↵Sven Gothel2011-10-061-2/+8
| | | | | | | | | | | | available, ignore the given ID Fixes Omap3 EGLConfig's which does not have a native visual ID
* | NEWT/Android: Move fullscreen setting to AndroidWindow ; Cleanup AndroidWindowSven Gothel2011-10-0610-67/+81
| |
* | Android: launcher manifest: adding INTERNET permission for NV's perfhudSven Gothel2011-10-061-0/+1
|/