summaryrefslogtreecommitdiffstats
path: root/src/test
Commit message (Collapse)AuthorAgeFilesLines
* Android: Use standard launch mode; Add default actions to NewtBaseActivity; ↵Sven Gothel2011-09-305-125/+9
| | | | Add RedSquare ES1 + ES2
* demo: es2 shaders: use default precisionSven Gothel2011-09-282-113/+106
|
* Android/Demos: Add ElektronenMultiplizierer (fix shader and keylistener ↵Sven Gothel2011-09-283-20/+22
| | | | add/remove)
* GearsES1/ES2 demos: remove junit assertionsSven Gothel2011-09-282-15/+1
|
* NewtBaseActivity: Enable 'slave' mode, ie as a downstream for external ↵Sven Gothel2011-09-281-83/+46
| | | | launched Activity, see NewtLauncherActivity
* NEWT/Android: Send MouseClicked event, MouseEvent enhancement, Demo: real 2 ↵Sven Gothel2011-09-282-16/+41
| | | | | | | | finger zoom MouseEvent: Check array sizes at cstr. Enhance 'toString()', pointer arrays added. GPUUISceneGLListener0A now uses 2 finger distance for zoom
* Fix ES2 shadersSven Gothel2011-09-281-3/+3
| | | | | | | | | | | Add missing floating point precision qualifiers. '#extension OES_standard_derivatives : require' somehow doesn't pass the GLSL compiler, however '#extension GL_OES_standard_derivatives : enable' does. Currently works on ARM's Mali-400 MP, NV Tegra still don't show a picture. TODO: More in depth evaluation.
* Android Activity Launching (jogl.test)Sven Gothel2011-09-283-0/+349
| | | | | | | | | | | | | | | | Launching activity is in: jogl.android-launcher.apk and directly derives from NewtLauncherActivity. It daisy chains apk's via ClassLoaderUtil: - gluegen-rt.apk - jogl.all-android.apk - jogl.test.apk (*) (*) This has to made configurable so the generic NewtLauncherActivity can be reused by any user application. After preparing the ClassLoader (see above), NewtLauncherActivity instanciates the configurable user Activity and passes all it's activity calls down to it.
* NEWT/OSX: 'Better' child window positioning, still, after reparenting into ↵Sven Gothel2011-09-272-1/+14
| | | | | | | | | parent, a white window rectangle remains. .. we also need to understand the absolute screen position better, ie. when required and when not (at window creation currently).
* tests: added some commented out 'wait for press enter' startups, reduce ↵Sven Gothel2011-09-273-6/+13
| | | | getCurrentScreenMode() loop to 100
* NEWT/WindowImpl: Remove wait for position (keep waitForSize for ↵Sven Gothel2011-09-161-2/+3
| | | | | | reparent/fullscreen) Window position is not deterministic enough and slows down processing while sync on it
* NEWT Cleanup: AWT driver fix, WindowImpl createNative .., minor editsSven Gothel2011-09-162-13/+1
| | | | | | | | | AWT driver fix - setVisible at creation, using reconfigureWindow impl (fixed WindowImpl createNative .., - no double visibility check on creation - visible:=true anyway for later creation, if failed or not available yet
* minor editsSven Gothel2011-09-162-5/+10
|
* Test NEWT Parenting: Incr. test duration to 600ms (new state poll of ↵Sven Gothel2011-09-161-1/+1
| | | | reparenting may take ~400ms)
* Fix AWT Test Cases: Use AWT-EDT for modifying visible frame and call ↵Sven Gothel2011-09-163-58/+84
| | | | validate() afterwards
* Graph Demos: Make GLEvenListener 'standalone'; UIScene to common package; ↵Sven Gothel2011-09-158-60/+74
| | | | Cleanup
* JOGLNewtAppletBase: Use proper context ClassLoader; Add ↵Sven Gothel2011-09-152-9/+25
| | | | ElektronenMultiplizierer (NEWT Applet Runner)
* NEWT (Manual) Test Case: Add fullscreen and alwaysOnTop at window creationSven Gothel2011-09-151-1/+9
|
* NEWT setAlwaysOnTop(): Allow windows to stay permanent on top; TODO: X11/WindowsSven Gothel2011-09-141-0/+9
|
* disable test of NV swap group - but add explicit test case (disabled) for ↵Sven Gothel2011-09-092-11/+141
| | | | documentation purposes
* NEWT: Window default pos ; FullScreenSven Gothel2011-09-091-73/+78
| | | | | | | | | | | | | | | - FullScreen - lock parent window if child - X11: more sophisticated EWMH FS usage - X11: set window 'Above' before FS and at focus - allow window WM default position at window creation - default position { -1, -1 } as hint to native WM to gather a suitable default position - wait until user-pos or WM-pos reached - reconfigureWindow* - allow -1 values for pos/size to mark no-change
* *GLContext: resetStates(); getPlatformExtensionsString(); GLX/WGL ↵Sven Gothel2011-09-091-2/+14
| | | | | | | | | | | | | | | | | | | | | | NV_swap_group support; setSwapInterval(); resetStates() - fixes a bug where X11GLXContext impl. resetState() !! - marked all with @Override tag - ensured super.resetStates() is called at end (oops) getPlatformExtensionsStringImpl()* - fixes a bug where X11GLXContext overrides GLContext cached GLX extension string query - marked 'final' in GLContext to avoid bugs - using abstract 'getPlatformExtensionsStringImpl()' called by ExtensionAvailabilityCache Add premiliry GLX/WGL NV_swap_group support - thought it might be a solution to sync swap of 2 windows - none of my drivers/platforms support it, event though extension is avail on Linux Promote setSwapInterval() (1 up) - bumped above API up to public GLContext - those extension should not spam the GL interfaces .. hmm
* JOGL: Make GLProfile shutdown()/initSingleton() functional, ie. proper ↵Sven Gothel2011-09-081-1/+15
| | | | | | | recreation of all resources - Release all GLDrawableFactory instances at shutdown, [re]create them at initialization - Release GLContext resources (availability map) as well
* NEWT/ScreenMode: X11 fixes ; Ensure Screen's size is set if screenMode ↵Sven Gothel2011-09-085-7/+379
| | | | | | | | | | | | | | | | | | changed ; Enhanced tests; Catch NV/XRANDR/GL bug X11 fixes - X11Screen properly uses it's display's connection decorated in lock/unlock (for ScreenMode etc) Ensure Screen's size is set if screenMode changed - ScreenImpl's ScreenModeListener updates it's screen size so 'external' changes will be detected. Enhanced tests - Verify more data rel. ScreenMode Catch NV/XRANDR/GL bug - Read TestScreenMode01NEWT/TestScreenMode01bNEWT comments
* Minor edits, dead code, test invocationSven Gothel2011-09-081-1/+3
|
* Destruction of GLAutoDrawable shall not remove them from AnimatorControl ↵Sven Gothel2011-09-084-15/+49
| | | | | | | | | | | | | | | | | | | (due to recreation) ; NEWT/Window: Remove isValid() API entry - always true! Destruction of GLAutoDrawable shall not remove them from AnimatorControl (due to recreation) - Completes commit b65e1e76d413b70e5593173e6bd36d30675554a6 - WindowImpl: - volatile: windowHandle/visible fields (memeory sync critical) - destroy must set visible := false, to avoid immediate recreation via a display call of another thread, ie an animator. NEWT/Window: Remove isValid() API entry - always true! - NEWT/Window's can always be recreated. - redundancy in API is even worse than redundancy in impl. :)
* NEWT/Window: Cleanup Actions: Reparenting, Fullscreen and DecorationSven Gothel2011-09-072-7/+25
| | | | | | | | | | | | - don't assume size/pos change - hence don't set window's values, but wait for satisfaction - don't send resize events on our own, just rely on the event mechanism - fullscreen: don't wrap action around invisibility from Java, Win7 flashes otherwise. Clients who benefit from it (X11) impl. it natively. - fullscreen exit: validate pos/size in case of a child window, like reparenting. Otherwise the container might gets confused (eg. AWT).
* Test ScreenMode: Minor changes - less wait/timingSven Gothel2011-09-063-12/+27
|
* Fix test case for commit 68f5a97ef165a39769040e36114c572c7d0f1abdSven Gothel2011-09-061-3/+1
|
* NEWT/ScreenMode: Remove Cloneable on Immutable .. makes no senseSven Gothel2011-09-061-6/+16
|
* NEWT/Window/Insets: Implement proper Inset usage ; Cleanup ↵Sven Gothel2011-09-067-56/+112
| | | | | | | | | | | | | | | | | | | | | | | | | WindowImpl::reconfigureWindowImpl Implement proper Inset usage (window decoration size) - Insets are either polled (updateInsets()) or event driven (insetsChanged()) - Insets are used for size/pos calculations from Java side - Natural size/pos in NEWT is client-area, ie w/o Insets - Adding setTopLevelPosition()/setTopLevelSize() for top-level values, ie including insets WindowImpl::reconfigureWindowImpl - Use flags to pass down the requested action to the native implementation - Impl. all native actions: visible, decoration, reparent, resize, fullscreen - Always use size/pos in client-area space, impl. shall use Insets to tranform them - Remove double-setting of (reparent/fullscreen), which where introduced due to buggy impl. code - Fix return from fullscreen position: Was overwritten with FS position (0/0) - Fix decoration change: Remove visible toggle - not required, and actually disturbing X11Windows/WindowsWindow: Added/Fixed Insets impl. Tests (manual): - TestSharedContextVBOES2NEWT utilizies proper window layout using Insets - TestParenting03bAWT uses window layout for reparenting
* Test Multisample/Translucency: Remove implicit alpha settingsSven Gothel2011-09-042-1/+6
| | | | see commit 3ea949b6a14c1ba631cb41b7439af86b21db4c05
* Complete translucency support (core w/ X11 (only) - tested w/ NEWT)Sven Gothel2011-09-032-4/+162
| | | | | | | | | | | | | | | | | DefaultGLCapabilitiesChooser: - Add penalty for opaque mismatch: dbl-buf > opaq > stencil GLGraphicsConfigurationFactory: - Case no-chooser && has-recommended-idx: - Only use recommended index if caps is opaque, otherwise use default chooser to validate translucency NativeWindow Capabilities: - transparent default values -> 0 Added NEWT Test: TestTranslucencyNEWT Added command line translucency/undecorated options for TestGearsES2NEWT
* Test Gears ES1/ES2: Fix shared destructionSven Gothel2011-09-021-6/+19
|
* Test Gears ES1/ES2: Fix lifecycle check (shared gears)Sven Gothel2011-09-022-10/+14
|
* TestParenting02NEWT: Don't move parent window -> lots of WM fighting / ↵Sven Gothel2011-09-021-2/+4
| | | | flickering
* Test GLSLSimpleProgram: Add proper destroy ..Sven Gothel2011-09-021-0/+10
|
* Gears/RedSquare ES1/ES2: Add proper destroy/init lifecycle incl. assertion ↵Sven Gothel2011-09-025-129/+200
| | | | | | | | | checks; Use swapInterval ; RedSquareES2 use VBO RedSquareES2 use VBO. - On Windows/NV we had to re-issue (pass down to GPU) the vertex attribute data (vertex/color), otherwise glDrawArrays crashes .. Probably a GL impl. bug. Hence we use VBO to minimize the data upload.
* Test TestBug463ScaleImageMemoryAWT: Use UI Locking and AWT-EDT create/disposeSven Gothel2011-09-011-15/+34
|
* Test PIXMAP/BITMAP: Can't expect GL2/ES2 - might be SW OpenGLSven Gothel2011-09-011-3/+7
|
* Test ElektronenMultiplizierer: Unix coding of shader source (failed on ↵Sven Gothel2011-09-012-2/+2
| | | | Windows/NV)
* TestScreenMode01NEWT: Validate window size after FS toggleSven Gothel2011-09-011-0/+8
|
* Test ElektronenMultiplizierer: Add original author information, split ↵Sven Gothel2011-09-014-307/+373
| | | | | | | | | | | | | | | GLEventListener/Test, .. Add original author/artist information: Dominik Ströhlein (DemoscenePassivist) Split GLEventListener/Test code Add key right/left for frame +/- 120 (fwd/bwd in time) Proper header doc formate Minor cleanup
* Test Gears: Use proper 'java' author tagSven Gothel2011-09-016-7/+7
|
* Test: Add RedSquare ES1 and ES2 standalone testsSven Gothel2011-09-012-0/+272
|
* Tests: Exchange GL2, ES1 GLEventListener to ES2 - mobile test preparation.Sven Gothel2011-09-0126-223/+86
|
* Unit Tests: Remove redundant GLProfile.initSingleton(boolean) callsSven Gothel2011-08-313-13/+0
|
* UnitTests NEWT: Place GLProfile.initSingleton(true) to @BeforeClass method, ↵Sven Gothel2011-08-317-27/+39
| | | | ensuring init after UI Lock
* UnitTests AWT: Remove GLProfile.initSingleton(true) and ensure AWT-dispose ↵Sven Gothel2011-08-3127-79/+70
| | | | | | | | | | | happens on AWT-EDT We will use the default implicit call of GLProfile.initSingleton(false). (This is the same case as for AWT applets as.) We shall create extra test cases for AWT + GLProfile.initSingleton(true) to test it's stability. However .. to nail down our test instability w/ AMD's fglrx driver we move to the default behavior.
* UnitTest UI: SingletonInstance Lock at @BeforeClass - before all other ↵Sven Gothel2011-08-311-2/+2
| | | | sub-class calls