summaryrefslogtreecommitdiffstats
path: root/src/test/com/jogamp
Commit message (Collapse)AuthorAgeFilesLines
* Unit Test Framework SingletonInstance: setup file unlock/delete asapSven Gothel2011-04-281-19/+31
|
* Fix glsl unit tests: NV needs to have explicitly turn off vsync / Fix 'sed' ↵Sven Gothel2011-04-284-19/+32
| | | | havoc: gcu_ -> mgl_ uniform names
* Graph Demos: Add F4 key to exit; Proper exit sequence w/ animator.stop() ↵Sven Gothel2011-04-266-18/+108
| | | | after window is destroyed to exit the JVM
* ShaderState: Add 'ownUniform()/ownAttribute()'; rename glFunction -> ↵Sven Gothel2011-04-267-100/+101
| | | | | | | | | | | | | | function; switch program enh. ; Graph lifecycle Add 'ownUniform()/ownAttribute()' allowing to reset all bound uniforms/attributes, not just active ones plus handling the lifecycle of the owned attributes (destroy). This simplifies the lifecycle of all shader attributes. Rename glFunction -> function .. well, the GL attribute marks them GL related already Switch program enhancement. If switching to new program (unlinked), issue glBindAttributeLocation .. Graph lifecycle cleanup using the above ..
* Newt Window: Remove 'invalidate()' method, only 'destroy()' is required (and ↵Sven Gothel2011-04-2634-151/+110
| | | | | | | makes sense) - WindowImpl/GLWindow: Cleanup destroy code .. - Tests: sync / remove FPS stderr print
* Use less updated animator fpsSven Gothel2011-04-251-5/+7
|
* Fix GLSL Shader tests ..Sven Gothel2011-04-253-89/+146
|
* FPSCounter def to 5*60 frames (each 5s at 60Hz) ; Test: each 1sSven Gothel2011-04-2526-74/+105
|
* Graph: Fix AMD shader complain (version) ; No Attributes in fragment program ↵Sven Gothel2011-04-242-1/+3
| | | | ; Disable FPS draw at start
* Fix junit tests: Enable FPSCounter (missing from ↵Sven Gothel2011-04-245-1/+10
| | | | ea819ff768d507c37a981c1ab0bdc0cad32c6a87)
* Misc cleanup, strings etcSven Gothel2011-04-241-2/+0
|
* Add unified support for GL_ARB_debug_output and GL_AMD_debug_output.Sven Gothel2011-04-242-0/+409
| | | | | | | | | | | | | | | | | | | | | | If GL_ARB_debug_output is not available, but GL_AMD_debug_output exist, fallback to the latter, offering generic aliased methods translating the delta (AMD category <-> ARB source/type). Generic aliased methods reside in GLContext* Enable/Disable via GLContext and GLAutoDrawable. To enable the GLDebugOutput feature GLContext.enableGLDebugMessage(true) or GLContext.setContextCreationFlags(GLContext.CTX_OPTION_DEBUG) shall be called _before_ context creation via GLContext.makeCurrent()! In case GLAutoDrawable is being used, GLAutoDrawable.setContextCreationFlags(GLContext.CTX_OPTION_DEBUG) shall be issued before context creation via GLContext.makeCurrent()!. After context creation, the GLDebugOutput feature may be enabled or disabled at any time using this method. Verify both unit tests for usability.
* New FPSCounter, impl. by GLWindow and GLAnimatorControl (fps perf related ↵Sven Gothel2011-04-2336-241/+246
| | | | | | | | | | | API change) - Don't fetch System.currentTimeMillis() by default and for every frame (performance) - Default behavior is FPSCounter switched off - Enable by frame interval, ie measure each 60 frames. - FPSCounterImpl is default impl. used by impl. FPSCounter class (reduce code/redundancy) - Might be promoted to GLAutoDrawable ?!
* Refactored graph: Reduce/remove data copy/recreation; Shader cleanupSven Gothel2011-04-2316-53/+97
| | | | | | | | | | | | - Pass the current GL context object where it's required - Introduce RenderState (which has ShaderState) to acquire/change shader related data (Region) - Shader Cleanup: User import for common stuff; use req. version - Reduce/remove data copy/recreation in *Region implementation - UI/RIButton: Use defaults I like :)
* ShaderState: Validated impl./state-handling / Added commentsSven Gothel2011-04-226-0/+993
| | | | | | Capable of glBinAttribLocation(..) Proper state check (has program, linked program, ..) for attrib/uniform methods.
* test: reflect GLArrayData changes bf8a54b502f0fcd930e12a8bbda65f9538e8a2f7Sven Gothel2011-04-221-7/+3
|
* Texture: Change method signatures: Pass GL context object if required ↵Sven Gothel2011-04-227-26/+24
| | | | | | | | | | | | | | (remove GLContext.getCurrentGL() usage. Using function signatures explicitly require the GL [current] instance clarifies that the context must be current. Removing GLContext.getCurrentGL() reduces TLS access of current thread and hence possible performance hits. The Texture class has been chosen for this conversion [not TextureIO yet], since the enable/bind methods maybe used within a rendering loop. User already 'complained' about lack of current GLContext clarity as well.
* Fix TAB: Replace all TAB with 4 spacesSven Gothel2011-04-0827-768/+768
|
* Added headers to graph.ui classesRami Santina2011-04-082-0/+56
|
* Merge: merged with sgothelRami Santina2011-04-083-7/+9
|\
| * Use GLArrayDataServer to handle shader attributes/data using VBOSven Gothel2011-04-081-1/+3
| |
| * FIX: Refactor GLArrayData and all it's implementations/sub-interfaces (VBO ↵Sven Gothel2011-04-082-6/+6
| | | | | | | | | | | | | | | | | | | | target, comments, names) VBO target: Allowing ELEMENT_VERTEX_ARRAY w/o corresponding GLSL/Fixed attribute Names: Clarified method named. Comments: Added and fixed comments
* | Added demo GPU Resolution Indep UI - Button;Rami Santina2011-04-085-0/+730
|/ | | | | | | | | RIButton - resolution independent vector based button UINewtDemo01 --> shows a testcase of a button rendered on scene. controls: 1/2: zoom in/out 4/5: increase/decrease shape/text spacing 6/7: increase/decrease corner size 0/9: rotate.
* Fix: shaderProgram.program(); glBindAttribLocation() call; ↵Sven Gothel2011-04-051-5/+8
| | | | | | | | | | | | dispose/disposeImpl sequence; Use shaderProgram.program() instead of shaderProgram.id() - the id() is just a unique sequence name. Call glBindAttribLocation() after program object init and before linkage. Chain call disposeImpl() properly to fix destruction sequence: TextRendererImpl01 -> TextRenderer -> GlyphString -> Region RegionRendererImpl01 -> RegionRenderer -> Region
* Rendered: +enable(GL, bool) ; dumpFontNames..Sven Gothel2011-04-012-3/+11
|
* Font Names: Expose name indices allowing user to pick all names ..Sven Gothel2011-04-011-5/+6
|
* Graph Unit tests must have NEWT in the name / Also added UI lockingSven Gothel2011-04-012-4/+6
|
* more text in text demosSven Gothel2011-04-012-51/+87
|
* Folded turtle2d into jogl foldersSven Gothel2011-04-0115-0/+1685
|
* Promote GLDrawableFactory.getOrCreateSharedContext(..) to public.Sven Gothel2011-03-261-0/+100
|
* Fix Bug460 testSven Gothel2011-03-261-30/+7
|
* Fix Bug #460 - GLCanvas NPESven Gothel2011-03-211-0/+80
|
* Revert Gears: Remove static main, since junit tries to load references ↵Sven Gothel2011-03-051-44/+0
| | | | (AWT); Remove static init as well
* junit Gears: remove AWT GLCanvas from importSven Gothel2011-03-051-3/+2
|
* Sync Gears (jogl-demos)Sven Gothel2011-03-041-5/+66
|
* Tolerate pending/lazy native context creation at 1st makeCurrent (OSX).Sven Gothel2011-03-011-14/+29
| | | | This allows SWT on OSX to work properly.
* Fix TestSharedContextListAWT: Use in-thread simple frame construction, which ↵Sven Gothel2011-03-012-10/+11
| | | | somehow solves the problem on Windows having no height
* fix test - dont use GLAutoDrawable.invoke(boolean wait, GLRunnable glRunnable)Sven Gothel2011-02-281-10/+8
| | | | for window locking calls, ie window changes. The GLRunnable list is executed while window is locked.
* unit tests: Gears, TestGearsNEWT, WindowImplAccessSven Gothel2011-02-282-1/+25
| | | | | | | | | Gears (add cursor rotation) TestGearsNEWT (add decoraction toggle 'd') WindowImplAccess NEWT Closing tests .. programmatical close on EDT, which simulates 1:1 native closing operation.
* Remove TestSWT01GLn hacking, see TestSWT02GLnSven Gothel2011-02-281-82/+0
|
* SWT/JOGL: Native SWT binding testSven Gothel2011-02-281-0/+221
|
* Attempt to analyze failed AWT UI tests, where no paint is being issued to ↵Sven Gothel2011-02-262-11/+19
| | | | GLCanvas.
* Code cleanup: override, imports, StringBuilder, ..Sven Gothel2011-02-261-1/+1
|
* Fix bug 473: Override on implementations with 1.5Andy Brown2011-02-255-18/+18
| | | | | | | | | | Using @Override on implementations of interface methods wasn't introduced until Java 1.6. After changing the compliance level to 1.5 in Eclipse, it reports 23 errors. This fix comments out the annotations rather than deleting them altogether thinking it may be easier if JOGL ever targets 1.6 in the future.
* Avoid NPE, incr. test poll, ..Sven Gothel2011-02-252-2/+3
|
* misc cleanup (import,script attributes)Sven Gothel2011-02-221-5/+0
|
* NativeWindow/SWT: Rename SWTMisc -> SWTAccessor; Add to nativewindow.core.jarSven Gothel2011-02-221-14/+111
|
* Cleanup NEWT MainThread, using new AWTEDTUtil impl. / Sync AWTCanvas with ↵Sven Gothel2011-02-221-2/+0
| | | | | | | | | | GLCanvas changes Cleanup NEWT MainThread, using new AWTEDTUtil impl. - Allow simple singleton AWTEDTUtil to be used for AWTDisplay and more .. Sync AWTCanvas with GLCanvas changes - Latest GLCanvas changes around addNotify() had to be synced
* Move implementation private files from com.jogamp.<module>.impl. to ↵Sven Gothel2011-02-092-3/+3
| | | | | | | | | | | | | | | jogamp.<module> (2/2) - edit files - com.jogamp.opengl.impl -> jogamp.opengl - com.jogamp.opengl.util.glsl.fixedfunc.impl -> jogamp.opengl.util.glsl.fixedfunc - com.jogamp.nativewindow.impl -> jogamp.nativewindow - com.jogamp.newt.impl -> jogamp.newt This sorts implementation details from the top level, ie skipping the public 'com', allowing a better seperation of public classes and implementation details and also reduces strings. This approach of public/private seperation is also used in the OpenJDK.
* Move implementation private files from com.jogamp.<module>.impl. to ↵Sven Gothel2011-02-081-52/+0
| | | | | | | | | | | | | | | jogamp.<module> (1/2) - rename task - com.jogamp.opengl.impl -> jogamp.opengl - com.jogamp.opengl.util.glsl.fixedfunc.impl -> jogamp.opengl.util.glsl.fixedfunc - com.jogamp.nativewindow.impl -> jogamp.nativewindow - com.jogamp.newt.impl -> jogamp.newt This sorts implementation details from the top level, ie skipping the public 'com', allowing a better seperation of public classes and implementation details and also reduces strings. This approach of public/private seperation is also used in the OpenJDK.