summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merged pull request #35 from WadeWalker/2011-04-12-fix-bug-493.Sven Gothel2011-04-271-1/+15
|\ | | | | Fix problem with external context on CentOS 5.5 inside VMWare
| * Fix problem with external context on CentOS 5.5 inside VMWareWade Walker2011-04-121-1/+15
| | | | | | | | | | | | | | | | This fixes a problem that's analogous to one we've had on Windows; apparently querying OS-specific info like hardware device contexts or framebuffer configuration IDs from external GL contexts doesn't always work properly, especially on 32-bit OSes and from within virtual machines.
* | MacOSX/CGL Add CGLGetShareGroup()Sven Gothel2011-04-262-1/+3
| |
* | Newt Window: Missing change of f47230cb4649df13260ac56c5dae6c01dad7c1e7 ↵Sven Gothel2011-04-261-6/+0
| | | | | | | | (remove invalidate())
* | test scriptSven Gothel2011-04-261-1/+1
| |
* | 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-2623-477/+571
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-2638-327/+182
| | | | | | | | | | | | | | makes sense) - WindowImpl/GLWindow: Cleanup destroy code .. - Tests: sync / remove FPS stderr print
* | NativeWindow/X11: Simple cleanup/generalization ..Sven Gothel2011-04-261-5/+16
| |
* | NEWT/X11 WindowClosing: End dispatch loop since Display could be destroyed ↵Sven Gothel2011-04-261-3/+15
| | | | | | | | after Java callback
* | ShaderState: 'Update' vertexAttribMap on enableSven Gothel2011-04-255-119/+149
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ShaderProgram: - shaderCode's HashMap -> HashSet - adding HashSet for attached ShaderCode - link: allow relink, attachShader only if not yet attached - new add(gl, ShaderCode, ..) method, allowing compile/attach pre linkage - remove boxing of integer 'id', use generics style (warnings) - rename: glReplaceShader -> replaceShader, glUseProgram -> useProgram - fix: replaceShader - hashCode _is_ 'id' ShaderCode: - remove boxing of integer 'id', use generics style (warnings) - hashCode _is_ 'id' ShaderUtil: Use generics style (warnings), static names
* | Use less updated animator fpsSven Gothel2011-04-251-5/+7
| |
* | graph/glsl: AMD need vertice attrib location 0 ..Sven Gothel2011-04-251-3/+3
| |
* | 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-2527-75/+106
| |
* | test scriptsSven Gothel2011-04-252-5/+15
| |
* | GLContextImpl.createContextARB(..): Use impl. GLProfile to determine ↵Sven Gothel2011-04-251-6/+7
| | | | | | | | | | | | requested context .. this fixes the bug where [GL2ES2/GL4bc] didn't fetch GL4bc, but a GL2 old context.
* | jogl.debug.DebugGL enables new DebugMessage/Output featureSven Gothel2011-04-242-5/+12
| |
* | Graph: Fix AMD shader complain (version) ; No Attributes in fragment program ↵Sven Gothel2011-04-245-6/+15
| | | | | | | | ; Disable FPS draw at start
* | Fix junit tests: Enable FPSCounter (missing from ↵Sven Gothel2011-04-245-1/+10
| | | | | | | | ea819ff768d507c37a981c1ab0bdc0cad32c6a87)
* | NEWT Event Types: Use final modifier if possibleSven Gothel2011-04-245-8/+8
| |
* | GLDrawableHelper: listener's locking cleaned ; Fix generics (warnings) ..Sven Gothel2011-04-241-43/+14
| | | | | | | | | | | | | | GLDrawableHelper always locked access to it's listeners, hence no copy is required for add/remove a listener. Writeout generics (warnings)
* | Fixed a few GL method's String parameter (explicit gluegen String declaration)Sven Gothel2011-04-241-1/+22
| |
* | Misc cleanup, strings etcSven Gothel2011-04-243-5/+3
| |
* | Add unified support for GL_ARB_debug_output and GL_AMD_debug_output.Sven Gothel2011-04-2421-33/+1581
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-2343-374/+584
| | | | | | | | | | | | | | | | | | | | | | 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 ?!
* | GLContextImpl: GLContextLock -> RecursiveLockSven Gothel2011-04-236-212/+70
| | | | | | | | | | | | | | | | | | RecursiveLock maintains a queue of waiting Threads, ensuring the longest waiting thread will be notified at unlock. Delete GLContextLock. Cleanup HashMap generics style.
* | Refactored graph: Reduce/remove data copy/recreation; Shader cleanupSven Gothel2011-04-2339-683/+1034
| | | | | | | | | | | | | | | | | | | | | | | | - 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-228-225/+1454
| | | | | | | | | | | | Capable of glBinAttribLocation(..) Proper state check (has program, linked program, ..) for attrib/uniform methods.
* | test: reflect GLArrayData changes bf8a54b502f0fcd930e12a8bbda65f9538e8a2f7Sven Gothel2011-04-221-7/+3
| |
* | FBObject: Add validation / API cleanupSven Gothel2011-04-221-42/+67
| | | | | | | | | | | | | | | | | | Added validation of FB/render buffer creation using glGetError(), due to users trouble of determine the root cause of erroneous application behavior. This change shall help tackling bug: 492 and 495 https://jogamp.org/bugzilla/show_bug.cgi?id=492 https://jogamp.org/bugzilla/show_bug.cgi?id=495
* | GLArrayData API and impl. changesSven Gothel2011-04-228-280/+315
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | +++ Remove GL parameter for - createFixed(..) - createGLSL(..) validation at client/server array data happens at 1st enableBuffer() call, no current context or profile required at creation time. Added ShaderState for createGLSL(..) clarifying dependency to the ShaderState, passing it down to the GLSLArrayHandler, which also removes the TLS GLContext.getCurrent() call. +++ Partially reverted ab48dac3f4419ceac51fdf059f310f0f0499c4d7 factory methods: removed added vboTarget parameter, since all createFixed and createGLSL are GL_ARRAY_BUFFER (VBO). Adding createData(..) factory method in GLArrayDataServer allowing diff vbo targets, ie GL_ELEMENT_ARRAY_BUFFER .. or none.
* | NEWT GLWindow: Remove context current check for swapBuffer() callSven Gothel2011-04-222-7/+2
| | | | | | | | | | | | | | The spec doesn't require a current context for a swap buffer call, however, if required .. as user shall encapsulate it by himself, or use the GLEventListener model. Motivation: Reduce TLS GLContext.getCurrent() calls.
* | GLBufferSizeTracker/GLBufferStateTracker: Remove RedundancySven Gothel2011-04-222-31/+3
| | | | | | | | | | | | | | GLBufferStateTracker.isBoundBufferObjectKnown() is redundant, since it's 'get' method added it if not yet known. GLBufferSizeTracker removed above mentioned call, fallback to std GL query, no exception.
* | simple cleanup/warningsSven Gothel2011-04-222-3/+2
| |
* | reflect GLContext changes a5430cf16727fdc7bcfb17ef251018cc479d5f5dSven Gothel2011-04-221-7/+3
| |
* | Fix/Add: Locator (Handle JarURLConnection and ..)Sven Gothel2011-04-223-31/+77
| | | | | | | | | | | | | | | | | | new: 'public static String getRelativeOf(URL baseLocation, String relativeFile)', capable of handling a JAR file/url. Using File based relative locator, allowing better utilization in code: old public static String getRelativeOf(String absoluteFileLocation, String relativeFile) new public static String getRelativeOf(File baseLocation, String relativeFile)
* | Fix GLProfile: Order of profiles Hi -> LowSven Gothel2011-04-221-54/+52
| | | | | | | | | | | | | | Ensure returning the highest profile always: all old: GL4bc, GL3bc, GL2, GL2GL3, GL4, GL3, GL2ES2, GLES2, GL2ES1, GLES1 all new: GL4bc, GL3bc, GL2, GL4, GL3, GL2GL3, GLES2, GL2ES2, GLES1, GL2ES1
* | GLContext changes:Sven Gothel2011-04-221-12/+32
| | | | | | | | | | | | | | | | | | | | | | change: putAttachedObject(String) -> attachObject(String) putAttachedObject(int) -> attachObject(int) new: validateCurrent() the 'int' mapped/attached objects are using the IntIntHashMap now
* | Texture: Change method signatures: Pass GL context object if required ↵Sven Gothel2011-04-2210-170/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (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.
* | copy all fonts and shader to build folder, allowing ide debuggingSven Gothel2011-04-222-2/+12
| |
* | ant all.ide target: use all debug flags (+vars)Sven Gothel2011-04-222-2/+9
| |
* | Add GL: glGetBufferSize(int buffer) - buffer size tracking, and add comments ..Sven Gothel2011-04-222-2/+23
| |
* | Add com.jogamp.graph disclaimerSven Gothel2011-04-081-0/+33
| |
* | Fix TAB: Replace all TAB with 4 spacesSven Gothel2011-04-08117-4701/+4701
| |
* | resolve conflictsSven Gothel2011-04-081-0/+1
| |
* | Merge remote-tracking branch 'rsantina/graph' into graphSven Gothel2011-04-0813-13/+832
|\ \
| * | Added headers to graph.ui classesRami Santina2011-04-082-0/+56
| | |
| * | Merge: merged with sgothelRami Santina2011-04-0824-438/+735
| |\ \
| * | | Added demo GPU Resolution Indep UI - Button;Rami Santina2011-04-086-1/+732
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.