aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* j3dcore: update constants from GLPointerFunc interfaceJulien Gouesse2012-05-031-22/+23
| | | | | | | | | | GL.GL_NORMAL_ARRAY -> GL2.GL_NORMAL_ARRAY GL.GL_COLOR_ARRAY -> GL2.GL_COLOR_ARRAY GL.GL_VERTEX_ARRAY -> GL2.GL_VERTEX_ARRAY GL.GL_TEXTURE_COORD_ARRAY -> GL2.GL_TEXTURE_COORD_ARRAY Signed-off-by: Julien Gouesse <[email protected]> Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: update to use the new Buffers helpers rather than BufferUtilsJulien Gouesse2012-05-031-17/+17
| | | | | Signed-off-by: Julien Gouesse <[email protected]> Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: the vertex attribute functions have moved to the GL2 profileJulien Gouesse2012-05-031-7/+7
| | | | | Signed-off-by: Julien Gouesse <[email protected]> Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: remove static feature boolean for CG libraryHarvey Harrison2012-05-031-4/+0
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: remove the JOGL CG shader support codeHarvey Harrison2012-05-034-251/+0
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: annotate GeometryRetained userslistHarvey Harrison2012-05-033-40/+28
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: remove d3d callback from GeometryArrayRetainedHarvey Harrison2012-05-036-41/+1
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: annotate users list in Screen3DHarvey Harrison2012-05-031-25/+16
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: remove more D3D only codeHarvey Harrison2012-05-036-136/+0
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: beginScene/endScene was only used by D3D...remove itHarvey Harrison2012-05-036-52/+0
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: remove all CG-shader support code (well, most of it anyways)Harvey Harrison2012-05-036-1801/+22
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: remove the ability to set the shading language to CG, assume GLSLHarvey Harrison2012-05-034-103/+2
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: simplify Pipeline singleton creationHarvey Harrison2012-05-031-31/+25
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: remove a bunch of the native support code and classesHarvey Harrison2012-05-0367-61462/+1
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: default to JOGL pipeline always, remove option to set native pipelinesHarvey Harrison2012-05-031-15/+2
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: use an explicit boolean when a PhysicalEnvironment has no more usersHarvey Harrison2012-03-051-20/+20
| | | | | | Then test that boolean to determine if it needs to be removed from the Hastable. Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: annotate PhysicalEnvironment static hashmapHarvey Harrison2012-03-052-6/+8
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: annotate the PhysicalEnvironment::devices listHarvey Harrison2012-03-052-60/+52
| | | | | | | Ensure this list is consistantly synchronized which will make it easier to use ArrayList if desired in a future patch. Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: annotate PhysicalEnvironment::users list as holding ViewsHarvey Harrison2012-03-053-51/+45
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: ViewPlatformRetained::getViewList cannot return nullHarvey Harrison2012-03-051-10/+9
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: remove unneeded casts to View in SoundStructureHarvey Harrison2012-03-051-4/+4
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: remove the unused SoundRenderer class...never seems to be usedHarvey Harrison2012-03-033-97/+0
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: change getViewPlatformList() to never return null and remove checksHarvey Harrison2012-03-032-65/+37
| | | | | | Also, consistently lock the cached array using the List it caches. Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: add an early return to the enable/disable event functions to reduce ↵Harvey Harrison2012-03-031-148/+120
| | | | | | indentation Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: preparation patch for cleanup of getViewList() users in VirtualUniverseHarvey Harrison2012-03-031-137/+132
| | | | | | No functional changes, just making the whitespace consistent. Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: only mark the cached view list as dirty if we actually change itHarvey Harrison2012-03-031-5/+3
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: annotate list of Views in ViewPlatformRetainedHarvey Harrison2012-03-031-30/+30
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: annotate GroupRetained's list of child nodes and compiled child nodesHarvey Harrison2012-02-265-90/+60
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: annotate NodeRetained::branchGroupPathsHarvey Harrison2012-02-269-30/+27
| | | | | | - also use the copy constructor rather than clone() Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: fix raster code in the JOGL backend to match the native OpenGL codeHarvey Harrison2012-02-221-6/+6
| | | | | | | This appears to have been a typo from the initial implementation and likely never worked. Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: remove code that was stubbed-out in issue 458Harvey Harrison2012-02-212-36/+1
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: use annotated ArrayList of AWTEvents in WakeupOnAWTEventHarvey Harrison2012-02-201-16/+12
| | | | | | Make the locking explicit where used. Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: remove the DVR backdoor in ViewHarvey Harrison2012-02-201-47/+0
| | | | | | Dynamic Video Resize is effectively unused internally, kill it. Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: annotate the ThreadLocals in JoglPipelineHarvey Harrison2012-01-271-15/+15
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: remove the unneeded centroid from BoundingBoxHarvey Harrison2012-01-241-15/+8
| | | | | | | Return a temp Point3d as it's not that much more expensive than the math we're already doing. Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: switch the orderedBin array expansion to happen at set, rather than ↵Harvey Harrison2012-01-241-7/+18
| | | | | | | | | get time Add early return of null for the viewIndex >= array length and only expand the allocation when we set a non-null orderedBin. Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: format whitespace and move some variables into loops around callers ↵Harvey Harrison2012-01-241-67/+50
| | | | | | | | of OrderedGroupRetained::[gs]etOrderedBin Preparation patch to change where the OrderedBin array is expanded. Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: ensure the orderedBin array in OrderedGroupRetained is consistently ↵Harvey Harrison2012-01-241-29/+24
| | | | | | | | | | | | locked Introduce a lock object to lock all access as you cannot use an object to lock itself if that reference is ever written over, as is the case here. You can get surprising nullpointer exceptions and indexOutOfbounds from concurrent thread access when you have multiple active views. Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: use the Bounds::getCenter(Point3d) function in the trivial casesHarvey Harrison2012-01-244-36/+29
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: add a getCenter(Point3d) to the Bounds interface and implement it ↵Harvey Harrison2012-01-234-15/+27
| | | | | | in the implementing classes Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: annotate lists of LightRetained, FogRetained, ModelClipRetained and ↵Harvey Harrison2012-01-175-333/+322
| | | | | | AlternateAppearanceRetained used by setlivestate Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: further reduce sizes of BoundingSphere and BoundingBoxHarvey Harrison2012-01-162-64/+17
| | | | | | | | | | Essentially this undoes all the code added for issue 561. Just rely on escape analysis to allocate on-stack. On 64-bit: Reduces BoundingSphere from 54 -> 38 bytes Reduces BoundingBox from 62 -> 46 bytes Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: remove temporary Point3d from BoundingBoxHarvey Harrison2012-01-161-9/+1
| | | | | | | | | Rely on escape analysis in the VM here, this method could be coded more carefully anyway to avoid most of the floating point math. On 64-bit reduces BoundingBox from 70->62 bytes Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: small optimization in BoundingSphere/BoundingBox::transform(Bounds, ↵Harvey Harrison2012-01-162-19/+4
| | | | | | | | | | | Transform3d) When the type of Bounds being passed matches the current Object, this method can simply set the state and then transform the current object, avoid the need for a temporary object in BoundingBox's case. BoundingSphere was already open-coding this pattern, make it explicit. Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: use the BoundingSphere constructor to get an empty bounds where desiredHarvey Harrison2012-01-153-12/+6
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: match behavior of constructor and set() method in BoundingSphereHarvey Harrison2012-01-151-1/+1
| | | | | | | Make the BoundingSphere(Bounds) match the set(Bounds) behavior when passing an empty Bounds into it. Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: one more use of the emptyBounds helper in BoundingSphereHarvey Harrison2012-01-151-5/+3
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: format BoundingSphere constructors to alwats set the state in the ↵Harvey Harrison2012-01-151-29/+28
| | | | | | | | same order Set in the order: boundId, center, radius. Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: inline NaN test into its one caller in BoundingSphereHarvey Harrison2012-01-151-8/+1
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: reduce memory footprint of BoundSphereHarvey Harrison2012-01-151-8/+7
| | | | | | | | The temp array of Point3d's are only used in one constructor, which is not called anywhere in the Java3d package. Allocate a temp inside the constructor as-required and reduce the memory use for everyone else. Signed-off-by: Harvey Harrison <[email protected]>