summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Add com.jogamp.graph disclaimerSven Gothel2011-04-081-0/+33
|
* Fix TAB: Replace all TAB with 4 spacesSven Gothel2011-04-08117-4701/+4701
|
* Merge remote-tracking branch 'rsantina/graph' into graphSven Gothel2011-04-0812-12/+830
|\
| * Added headers to graph.ui classesRami Santina2011-04-082-0/+56
| |
| * Merge: merged with sgothelRami Santina2011-04-0821-429/+726
| |\
| * | 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.
| * | TextRenderer - createString exposed; Renderer - added scale();Rami Santina2011-04-083-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | createString function is now public to be able to create a string without initializing textRenderer. Temp change, should be cleaned up. added missing scale transformation to renderer pmvmatrix; added glyphstring.getBounds() so not to use font.getStringBounds. since it Would be a redundant call.
| * | Fix: AABBox setLow/setHigh call resize; removes possible call errorRami Santina2011-04-081-4/+4
| | |
| * | Added getBounds impl to region, returning AABBoxRami Santina2011-04-083-2/+24
| | |
* | | destroy: clear vertices/triangle arraysSven Gothel2011-04-081-2/+2
| |/ |/|
* | Use GLArrayDataServer to handle shader attributes/data using VBOSven Gothel2011-04-083-216/+230
| |
* | Use common constants for shader attributes (needs to be completed)Sven Gothel2011-04-084-5/+18
| |
* | Fix: Cached GlyphString handlingSven Gothel2011-04-081-20/+62
| | | | | | | | | | | | | | | | | | - Destroy removed ones - Handle overwrite/update on same key - Clarified names (size/limit) - Handle cache limit unlimited (limit := -1) and no cache (limit := 0) - Default cache limit := 256 - Comments
* | Fix FBObject: Remove double stencil RB generation; Expose data (size, ..)Sven Gothel2011-04-081-13/+13
| |
* | FIX: Refactor GLArrayData and all it's implementations/sub-interfaces (VBO ↵Sven Gothel2011-04-0812-174/+404
|/ | | | | | | | | | target, comments, names) VBO target: Allowing ELEMENT_VERTEX_ARRAY w/o corresponding GLSL/Fixed attribute Names: Clarified method named. Comments: Added and fixed comments
* Fix: DEBUG field (regression)Sven Gothel2011-04-052-3/+4
|
* Fix: shaderProgram.program(); glBindAttribLocation() call; ↵Sven Gothel2011-04-055-13/+32
| | | | | | | | | | | | 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
* Fix: Use new FBObject; Use shaderProgram.program() instead of shaderProgram.id()Sven Gothel2011-04-051-65/+30
| | | | | | | The new FBObject handles state transition more easily and it's usage is less complex to the caller - compared to inline usage. Use shaderProgram.program() instead of shaderProgram.id() - the id() is just a unique sequence name.
* ShaderProgram: Add 'init(GL2ES2)', allowing GL program object creation ↵Sven Gothel2011-04-051-0/+21
| | | | | | before link stage. This is required to allow proper usage of 'glBindAttribLocation()'.
* GLContext: Added java.debug.DebugGL and java.debug.TraceGL to enable debug ↵Sven Gothel2011-04-052-5/+16
| | | | and trace pipeline.
* Make FBObject more generic, split FBO/tex and depth/stencil attachements. ↵Sven Gothel2011-04-051-67/+174
| | | | Allow parametrization of each component.
* Fix: p1y region set to 0.5, cleaned shaderRami Santina2011-04-023-9/+6
|
* Jogl build: Rebuild jar files if shaders were updatedSven Gothel2011-04-021-1/+2
|
* Fix: removing fragments with w=0 is producing dimples with msaaRami Santina2011-04-021-1/+1
|
* Fragment Shader enhancement + clean-up;Rami Santina2011-04-023-22/+20
| | | | | | in first pass the shader now discards pixels that are dropped by imlicit AA, and second pass (if executed) doesnt include them in AA clac.
* Rendered: +enable(GL, bool) ; dumpFontNames..Sven Gothel2011-04-014-4/+16
|
* Font Names: Expose name indices allowing user to pick all names ..Sven Gothel2011-04-016-42/+34
|
* 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
|
* Load fonts via File or URL .Sven Gothel2011-04-015-29/+97
|
* Font: +getName / +getAllNames / +isPrintableCharacterSven Gothel2011-04-015-3/+61
|
* Remove HashCode util and its usageSven Gothel2011-04-012-206/+3
|
* integrated typecast into jogamp. treeSven Gothel2011-04-01111-171/+186
|
* Folded typecast into jogl folderSven Gothel2011-04-01105-0/+0
|
* Folded turtle2d into jogl foldersSven Gothel2011-04-01181-0/+26367
|
* Newt X11: keyPress/Release must use upper case XP_ values to match VK_ ; Set ↵Sven Gothel2011-03-301-50/+65
| | | | modifier properly.
* ShaderCode: Remove redundant code (Use proper Locator variant)Sven Gothel2011-03-302-16/+5
|
* JAWTUtil: Just use 'sunToolkitClass' in local blockSven Gothel2011-03-271-6/+3
|
* Merge remote-tracking branch 'wwalker/2011-03-24-fix-JAWTUtil-NPE'Sven Gothel2011-03-271-2/+2
|\
| * Fix NPE caused by refactoring on 2/26/2011.Wade Walker2011-03-261-2/+2
| | | | | | | | | | | | The refactoring refers to the static sunToolkitClass when it's not initialized, which causes an NPE and makes the system think it can't do AWT locks.
* | FPSAnimator: Poor attempt to wait for threads EOL after pause/stopSven Gothel2011-03-271-0/+6
|/
* Promote GLDrawableFactory.getOrCreateSharedContext(..) to public.Sven Gothel2011-03-262-1/+101
|