aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Merge GeometryService implementationHarvey Harrison2019-01-042-23/+62
|\ | | | | | | Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
| * Font3D: use the GeometryService as appropriateCurtis Rueden2015-11-251-28/+15
| | | | | | | | | | | | | | | | | | This avoids a dependency on j3d-core-utils's com.sun.j3d.utils.geometry package. If j3d-core-utils is present on the classpath, it can provide the same backing implementation as before, but the option is now open to provide an alternative service implementation if desired. This addresses hharrison/java3d-core#17.
| * Add a service interface for external routinesCurtis Rueden2015-11-251-0/+40
| | | | | | | | | | | | | | | | In particular, Font3D's triangulateGlyphs routine relies on the classes GeometryInfo and NormalGenerator of package com.sun.j3d.utils.geometry, which lives in the j3d-core-utils project, under a different license. This means that historically, j3d-core and j3d-core-utils were mutually dependent. We avoid the situation by using a service interface instead.
| * Font3D: refactor island triangulation logicCurtis Rueden2015-10-061-17/+27
| | | | | | | | | | This moves the logic into a dedicated private method, which will be subsequently externalized into a service interface.
| * Font3D: declare local variables when they are usedCurtis Rueden2015-10-061-2/+2
| | | | | | | | This will ease subsequent refactoring.
| * Font3D: tweak whitespaceCurtis Rueden2015-10-061-1/+1
| |
| * Font3D: count points in a separate loopCurtis Rueden2015-10-061-1/+3
| | | | | | | | This makes the subsequent logic easier to refactor.
* | j3d-core: Fix HiDPI issues on WindowsIan Brown2018-09-302-4/+17
| | | | | | | | Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
* | j3dcore: remove useless updatelocaltoVworld methodHarvey Harrison2018-06-142-14/+0
| | | | | | | | | | | | Only calls itself on all child nodes, no callers anywhere else. Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
* | j3dcore: JoglPipeline.resetRenderingAttributes does not call ↵Phil Jordan2016-10-301-0/+2
| | | | | | | | | | | | | | | | | | gl.glDisable(GL.GL_STENCIL_TEST); Fixes Bug 1325: https://jogamp.org/bugzilla/show_bug.cgi?id=1325 Signed-off-by: Phil Jordan <philjord@ihug.co.nz> Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
* | j3dcore: fix leftover texture mapping coords when some attributes unsetEmmanuel Puybaret2016-10-301-1/+5
| | | | | | | | | | | | Fixes Bug 1006: https://jogamp.org/bugzilla/show_bug.cgi?id=1006 Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
* | j3dcore: add handling for the new j3d.numSamples propertyEmmanuel Puybaret2016-10-302-8/+24
| | | | | | | | | | | | | | Override the number of canvas samples using a new Integer property, add a helper to MasterControl similar to the existing Boolean property methods. Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
* | j3dcore: avoid calls to glColor4f in material reset pathsEmmanuel Puybaret2016-10-301-4/+6
| | | | | | | | | | | | | | | | | | This causes crashes in the Parallels driver, possibly due to the calls occuring on a non-current glContext, this appears to not cause other issues as the glColor calls are always issued before rendering anyway and can avoid being reset here. Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
* | j3dcore: allow Java3D to operate in headless mode when using the noop rendererHarvey Harrison2016-10-282-7/+5
|/ | | | | [Suggested by Emmanuel Puybaret] Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
* j3dcore: flatten the directory structure a bitHarvey Harrison2015-04-19448-0/+0
| | | | Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
* j3dcore: remove an old ant build file in the source treeHarvey Harrison2015-04-191-416/+0
| | | | Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
* build: remove separate generated manifest filesHarvey Harrison2015-04-191-9/+0
| | | | | | Put all the manifest information in the ant build file. Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
* j3dcore: fix up compile to build with JOGL release 2.3.1Julien Gouesse2015-04-194-32/+32
| | | | | Signed-off-by: Julien Gouesse <gouessej@orange.fr> Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
* j3dcore: fix up compile to build with JOGL release 2.2.0Harvey Harrison2014-08-071-1/+1
| | | | | | setSize became setSurfaceSize. Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
* j3dcore: avoid lazy enum array creation, do it unconditionallyHarvey Harrison2014-08-061-21/+13
| | | | | | | The static ref was not being initialized properly (needed to be synchronized), just pull it into a staic init block and mark it final. Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
* j3dcore: cannot lock an object using its own referenceHarvey Harrison2014-08-061-18/+15
| | | | | | | | | | When updating the orientTransforms array reference, you cannot lock the update using the same ref, as the next thread in will lock the new object and concurrently run with the original updater. Pointed out by findbugs. Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
* j3dcore: remove an unused fog state variable from Canvas3DHarvey Harrison2014-08-051-6/+0
| | | | Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
* j3dcore: remove some unused imports, mark the caps chooser class as staticHarvey Harrison2014-08-051-3/+1
| | | | Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
* j3dcore: add an enum for the capabilities to try and disableHarvey Harrison2014-08-051-53/+43
| | | | | | - remove some trailing whitespace, add missing @Override Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
* j3dcore: removed dead codeKavon Farvardin2014-08-051-252/+0
| | | | | Signed-off-by: Kavon Farvardin <kavon.farvardin@gmail.com> Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
* j3dcore: initial fix for stereoscopic and double buffering graphics ↵Kavon Farvardin2014-08-051-119/+201
| | | | | | | configurations Signed-off-by: Kavon Farvardin <kavon.farvardin@gmail.com> Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
* j3dcore: prepare to refactor the Font3D tesselation code, move variables ↵Harvey Harrison2014-05-031-16/+15
| | | | | | next to use Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
* j3dcore: kill use of SUN_global_alphaHarvey Harrison2014-05-0310-128/+4
| | | | | | | Due to a typo testing for the extension, the jogl pipeline has never enabled this extension. Just kill it. Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
* j3dcore: small style change to do an early return when the appContext does ↵Harvey Harrison2014-05-031-18/+19
| | | | | | not need checking Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
* j3dcore: move fixup for null apcontext into the JOGLPipeline implementationSaeid Nourian2014-05-031-0/+36
| | | | Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
* j3dcore: fix typo in updateTexture3DBoundary in JoglPipelineHarvey Harrison2013-12-071-1/+1
| | | | | | GL_TEXTURE_2D should be GL_TEXTURE_3D Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
* j3dcore: use the context() helper in one more place in JoglPipelineHarvey Harrison2013-11-091-1/+1
| | | | Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
* j3dcore: annotate list of VirtualUniverse in GeometryRetainedHarvey Harrison2013-09-194-6/+6
| | | | Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
* j3dcore: move map of View to TransparentGeometry sorters into coreHarvey Harrison2013-09-145-4/+100
| | | | | | | Help break one more dependency on the j3dutils code by pulling a simple map into the core classes. Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
* j3dcore: annotate list of Behavior node in setLiveStateHarvey Harrison2013-08-033-10/+9
| | | | Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
* j3dcore: annotate childSwitchLinks arraylistHarvey Harrison2013-08-035-33/+26
| | | | | | | - not quite right as this list can hold LinkRetained or SwitchRetained...NodeRetained is the closest common class Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
* j3dcore: annotate the childTransformLink listsHarvey Harrison2013-08-034-20/+16
| | | | Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
* j3dcore: annotate generic lists in PickInfoHarvey Harrison2013-08-031-30/+28
| | | | Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
* j3dcore: trivial annotation of an Arraylist temp variableHarvey Harrison2013-07-311-2/+2
| | | | Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
* j3dcore: annotate the Shape3DRetained viewList that was missedHarvey Harrison2013-07-311-2/+2
| | | | | | This was missed when annotating the setLiveState list of view lists. Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
* j3dcore: annotate the list of mirrorshapes in Shape3DRetainedHarvey Harrison2013-07-312-26/+24
| | | | Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
* j3dcore: add all the missing @Override annotationsHarvey Harrison2013-07-31288-0/+1758
| | | | Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
* j3dcore: provide a public interface for AutoOffScreenCanvas3D to allow core ↵Harvey Harrison2013-07-102-1/+23
| | | | | | to build separately from j3dutils Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
* j3dcore: annotate targets array in Targets, remove two methods that had ↵Harvey Harrison2013-07-021-21/+5
| | | | | | incorrect types Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
* j3dcore: annotate list of dirty transformgroupsHarvey Harrison2013-07-023-8/+7
| | | | Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
* j3dcore: trivial list annotation in TransformStructureHarvey Harrison2013-07-021-3/+2
| | | | Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
* j3dcore: annotate prioritizedSounds list in SoundSchedulerHarvey Harrison2013-07-021-17/+13
| | | | Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
* j3dcore: use Arrays.copyOf instead of clone on an int[]Harvey Harrison2013-07-012-3/+5
| | | | Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
* j3dcore: change to ArrayList in the async error handling codeHarvey Harrison2013-07-011-4/+5
| | | | | | | | This is not a high-rate path, so ArrayList should be fine without too many resizes. Try and make up for it by allocating an array of sufficient size up front to avoid reflection inside the toArray method. Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
* j3dcore: remove some unused state for locked geometryHarvey Harrison2013-07-012-5/+0
| | | | Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>