summaryrefslogtreecommitdiffstats
path: root/src/test
Commit message (Collapse)AuthorAgeFilesLines
* Test: Cleanup warnings; Add GLProfile.initSingleton(true) call for ↵Sven Gothel2011-08-3010-6/+33
| | | | | | | | | | fluctuating NEWT tests Add GLProfile.initSingleton(true) call for fluctuating NEWT tests - Some of these tests even fail in the <init> state, i.e. cause a JVM stack dump around an early GLX createContext method only when issued via Jenkins. The Ubuntu 11.04/64bit Jenkins node runs 2 nodes (32 and 64 bit). TODO: Find cause.
* TestFocus01SwingAWTRobot: Run AWT destruction on AWT-EDTSven Gothel2011-08-301-4/+14
|
* TestGLDebug*: Remove Thread.dumpStack() ..Sven Gothel2011-08-302-4/+2
|
* TestAWTTextRendererUseVertexArrayBug464: Run AWT destruction on AWT-EDTSven Gothel2011-08-301-4/+13
| | | | | This fixes the _XSend X11 error on GLX commands using AMD driver .. proper cause unknown, but probably a race or condition or threading issue (Display usage by diff threads).
* SWT/AWT Test: Run AWT destruction on AWT-EDT, issue shell.close() before ↵Sven Gothel2011-08-301-4/+8
| | | | | | | shell.dispose() This fixes the _XSend X11 error on GLX commands using AMD driver .. proper cause unknown, but probably a race or condition or threading issue (Display usage by diff threads).
* Fix NEWT regression due to fix of bug 502, commit ↵Sven Gothel2011-08-301-1/+0
| | | | | | | | | | | | 9ed513e9a9616f6028084df4c650c8caf31ea49d In case of exessive destroy/create (the NEWT reparenting test cases), some dpyEDT events are slipping through the event dispatcher. This fix uses issues more XSync on both Display connection in case of 'requestFocus' and 'closeWindow'. 'requestFocus' also uses the dpyEDT to issue the XSetInputFocus(..), since it's EDT related.
* Tests: Comment GLProfile.initSingleton(false), which is redundant / implicit.Sven Gothel2011-08-304-4/+4
|
* ShaderState Usage/Test: Add setShaderState(GL) for pre-use attachment to the ↵Sven Gothel2011-08-303-56/+63
| | | | | | | | | | | GL context ; GLArrayDataClient-GLSL: Check if ShaderState is attached. ShaderState Usage/Test: Add setShaderState(GL) for pre-use attachment to the GL context - test cases utilize ShaderState before useProgram() was invoked, hence we need an API entry to attach the ShaderState explictly GLArrayDataClient-GLSL: Check if ShaderState is attached. - catch error case of non bound ShaderState to GL context
* JAWTWindow.getLocationOnScreen(): Add proper JAWT lockSurface() ; X11Util: ↵Sven Gothel2011-08-301-14/+2
| | | | | | | | | use System.err ; TestParenting02AWT: use GearsES2 JAWTWindow.getLocationOnScreen() - Add proper JAWT lockSurface() - Turns out that the parent location query of a NEWT child to an [J]AWT window didn't lock the window
* minor: update script / vsync changes in test w/ 2 windowsSven Gothel2011-08-301-12/+12
|
* GLSL DataArray/Handler: Remove ShaderState state and pass it through: ↵Sven Gothel2011-08-3014-64/+458
| | | | | | | | | ShaderState.getShaderState(gl) This removes the dependency of a GLSL GLDataArray object to a specific ShaderState and enables sharing of this VBO data, i.e. via a shared context. Test: TestSharedContextVBOES2NEWT
* NEWT/ScreenMode: Fix Bug 456 - Reset to orig ScreenMode when exit (normal or ↵Sven Gothel2011-08-243-11/+121
| | | | ctrl-c) ; Generics Coding
* API Change GLArrayDataWrapper/GLArrayDataServer: Add vboTarget to wrapper ↵Sven Gothel2011-08-223-6/+6
| | | | | | cstr and add interleaved seg. vboTarget is required in case of interleaved segments to allow eg. interleaved indices.
* Fix regression of commit 6c346d98f04e2355210960fe9ffde47432f04d62, where ↵Sven Gothel2011-08-221-1/+1
| | | | VBO/attribute binding wasn't updated (VBO data written, shader change/switch attribute on same location) ; Optimized interleaved GLSL VBO binding, hence split up GLArrayHandler syncData/enableState
* reloc test: demos.gl2.gears -> demos.gl2, etcSven Gothel2011-08-2234-36/+42
|
* Add missing GearsES2 NEWT test hookSven Gothel2011-08-221-0/+136
|
* Add Dominik's ElektronenMultiplizierer (GL2ES2, NEWT) versionSven Gothel2011-08-223-0/+1227
|
* Misc Rename/Reloc; GLArrayData*/PMVMatrix enhancments; Test fixes/adds ↵Sven Gothel2011-08-2232-583/+1182
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (GearsES1/ES2) rename/reloc: - javax.media.nativewindow.util: DimensionReadOnly -> DimensionImmutable PointReadOnly -> PointImmutable RectangleReadOnly -> RectangleImmutable unified 'immutable' name as used within jogamp already - remove array handler from public API com.jogamp.opengl.util.GL*ArrayHandler -> jogamp.opengl.util.GL*ArrayHandler - GLArrayData: Clarify method names getComponentNumber() -> getComponentCount() getComponentSize() -> getComponentSizeInBytes() getElementNumber() -> getElementCount() getByteSize() -> getSizeInBytes() - FixedFuncPipeline: Moved def. array names to GLPointerFuncUtil enhancement: - GLArrayDataServer: Add support for interleaved arrays/VBO - GLArrayData*.createFixed(..) remove 'name' argument (non sense for fixed function) - PMVMatrix: - one nio buffer - removed 'Pmv' multiplied matrix - removed 2x2 cut down 'Mvi' normal matrix (use 4x4 Mvi) - tests: - RedSquare -> RedSquareES1/RedSquareES2 - Gears ES1 fixed + ES2 added. Both work properly and share common Gears VBO construction - Added TestMapBuffer01NEWT, testing glMapBuffer
* Merge remote-tracking branch 'rsantina/master'Sven Gothel2011-08-0911-49/+873
|\
| * Graph UI and Text demo using UIcontroller.Rami Santina2011-08-092-0/+426
| |
| * Graph UI: Added scene controller and general scenegraph behavior.Rami Santina2011-08-095-34/+431
| | | | | | | | | | | | | | User can implement onClick, onPressed, onReleased for selected UIShape called by the controller. Selection done using color coding indexes. Controller also provides a default generic InputEventListener and GlEventListener
| * GLRunnable API Change: Return boolean indicating whether the back buffer ↵Rami Santina2011-08-094-15/+16
| | | | | | | | | | | | shall be updated before swap. This allows color selection GLRunnables, executed after the GLEventListener.
* | Test OneTriangle generalization cleanupSven Gothel2011-08-094-16/+17
| |
* | reloc files: NEWT Android driver, demos OneTriangleSven Gothel2011-08-091-0/+0
| |
* | fix jogl.all-mobile.jar/jogl_mobile configurationSven Gothel2011-08-051-1/+3
|/
* Test Gears GL2ES1: Favor native ES1 if available.Sven Gothel2011-08-011-1/+7
|
* Cont. fix 'Allow VBO/Texture Name (int) < 0'Sven Gothel2011-08-011-2/+2
| | | | | | | Refines spec GLArrayData and it's implementations. see commit 4d33a2df1e991ab75817dcb44061d88d3c499cdb see commit 2dbd16fc3edf29b39ba37a11b9fbf1b2aad75c45
* Use GL2ES1 profile (no emul) - complete commit ↵Sven Gothel2011-08-011-1/+1
| | | | a7fcfad44545e7b3f7e2f4176349588dc26d9070
* GearsGL2ES1: Fix ES1 usage FRONT -> FRONT_AND_BACK ; Use GL2ES1 profile (no ↵Sven Gothel2011-08-012-12/+7
| | | | emul)
* NEWT test: rgb == 555 is okSven Gothel2011-08-011-3/+3
|
* ES1 Gears: Don't force fixed function emulationSven Gothel2011-07-311-1/+1
|
* Add ES1 Gears (w/ NEWT startup)Sven Gothel2011-07-312-0/+576
|
* ruler.fp: Use es2 precision for all variables, otherwise es2 glsl compiler failsSven Gothel2011-07-311-5/+5
|
* FixedFuncUtil: Name/Fix getFixedFuncImpl() -> wrapFixedFuncEmul()Sven Gothel2011-07-311-1/+1
| | | | | | | Fix wrapFixedFuncEmul(): - only wrap if ES2 and (!ES1 || force) - return same profile if ES1 - otherwise throw exception
* GLProfile: Initialization fix and clarifications ( GLExceptions on n/a ↵Sven Gothel2011-07-072-32/+24
| | | | | | | | | | | | | | profiles ) - GLProfile.initSingleton(boolean) (implicit or explicit) won't throw any exception anymore. Followup 'GLProfile GLProfile.get(..)' calls will throw a GLException, if n/a. Availability maybe queried via GLProfile.isAvailable(..). - GLCapabilties, GLCanvas, GLJPanel: Clarify case where GLException maybe thrown, i.e. no default GLProfile available on default device. - Remove redundant GLProfile.is<ProfileName>Available(..)
* Fix NEWT GL ctx/offscreen (GPUMemSec..) tests: Use pbuffer (i.e. hw accel GL ↵Sven Gothel2011-06-261-0/+1
| | | | driver)
* Cleanup UITestCase helper, expose test class name via get*TestName() ..Sven Gothel2011-06-261-2/+14
|
* Minor editing/cleanups: code/testSven Gothel2011-06-122-2/+0
| | | | | - Don't call "NativeWindowFactory.initSingleton(true);" after "GLProfile.initSingleton(true);", since it's redundant, the former call issues the removed one.
* Merge remote-tracking branch 'remotes/rsantina/master'Sven Gothel2011-06-112-2/+1
|\
| * Graph: Remove unused importsRami Santina2011-06-051-1/+0
| |
| * Graph: updated inclass documentationsRami Santina2011-06-051-1/+1
| |
* | TestGLSLShaderState01 PerfTest: 2min timeout / swapInterval 0 / start ↵Sven Gothel2011-06-112-17/+28
| | | | | | | | counter after warmup
* | Relocated SingletonInstance to GlueGen (where a ServerSocket impl. is ↵Sven Gothel2011-06-112-166/+11
| | | | | | | | added). Using ServerSocket in UITestCase for SingletonInstance impl.
* | GLBuffers fix ; GL imageSizeInBytes fix / unit tests.Sven Gothel2011-06-091-0/+319
| | | | | | | | | | | | | | | | | | | | - Moved implementation of prev GL imageSizeInBytes(..) -> GLBuffers.sizeof() for all GL profiles - GLBuffers.*: Added missing formats and types (GL2.1, GL3.3 and GL4.1) - GLBuffers.sizeof(): Fail fast if format/type is unhandled, or alignment invalid - Added unit test for GLBuffers.sizeof()
* | Merge remote-tracking branch 'rsantina/master'Sven Gothel2011-06-085-5/+5
|\|
| * Add Factory for triangulation with base Interface; misc cleanupRami Santina2011-06-055-5/+5
| | | | | | | | | | | | | | | | | | CDTriangulation moved to impl (jogamp.graph), where additional triangulations or a wrapper to GLU triangulation can be added to triangulator. TWO_PASS_RENDERING renamed to VBAA (algorithm name) misc comments cleanups
* | unit test: use class global GLProfileSven Gothel2011-06-071-1/+1
| |
* | NEWT unit test util, on/offscreen GLContext/NEWT window separationSven Gothel2011-06-075-10/+45
| |
* | Using GlueGen IOUtil (dropped StreamUtil, FileUtil); Public GLReadBufferUtil ↵Sven Gothel2011-06-079-274/+27
|/ | | | | | | | (screenshot etc) and GLPixelStorageModes - Using GlueGen IOUtil, dropping StreamUtil and FileUtil - Public (util) GLReadBufferUtil for screenshots and slow r2t (AWT less), as well as GLPixelStorageModes
* NEWT/GLContext (unit test): Wait for visibility/realized ; Add clean scriptsSven Gothel2011-05-171-2/+4
|