Package com.jme3.util
Class TempVars
java.lang.Object
com.jme3.util.TempVars
Temporary variables assigned to each thread. Engine classes may access
 these temp variables with TempVars.get(), all retrieved TempVars
 instances must be returned via TempVars.release().
 This returns an available instance of the TempVar class ensuring this 
 particular instance is never used elsewhere in the meantime.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionfinal BoundingBoxBoundingVolumes (for shadows etc.)final ArrayList<BIHNode.BIHStackData>final float[]final CollisionResultsBIHTreefinal ColorRGBAColorfinal Eigen3fEigenfinal float[]final float[]final float[]final float[]final FloatBufferfinal float[]BoundingBox ray collisionfinal IntBufferFor interfacing with OpenGL in Renderer.final IntBufferfinal float[]final PlanePlanefinal QuaternionGeneral quaternions.final Quaternionfinal float[]final float[]Skinning buffersfinal float[]final Spatial[]Maximum tree depth ..final Matrix3fGeneral matrices.final Matrix4ffinal Matrix4ffinal Vector3f[]final TriangleFetching triangle from meshfinal Vector3fGeneral vectors.final Vector3ffinal Vector3ffinal Vector2f2D vectorfinal Vector2ffinal Vector3ffinal Vector3ffinal Vector4ffinal Vector4ffinal Vector3ffinal Vector3ffinal Vector3ffinal Vector3ffinal Vector3f
- 
Method Summary
- 
Field Details- 
intBuffer1For interfacing with OpenGL in Renderer.
- 
intBuffer16
- 
floatBuffer16
- 
bboxBoundingVolumes (for shadows etc.)
- 
skinPositionspublic final float[] skinPositionsSkinning buffers
- 
skinNormalspublic final float[] skinNormals
- 
skinTangentspublic final float[] skinTangents
- 
triangleFetching triangle from mesh
- 
colorColor
- 
vect1General vectors.
- 
vect2
- 
vect3
- 
vect4
- 
vect5
- 
vect6
- 
vect7
- 
vect8
- 
vect9
- 
vect10
- 
vect4f1
- 
vect4f2
- 
tri
- 
vect2d2D vector
- 
vect2d2
- 
tempMat3General matrices.
- 
tempMat4
- 
tempMat42
- 
quat1General quaternions.
- 
quat2
- 
eigenEigen
- 
planePlane
- 
fWdUpublic final float[] fWdUBoundingBox ray collision
- 
fAWdUpublic final float[] fAWdU
- 
fDdUpublic final float[] fDdU
- 
fADdUpublic final float[] fADdU
- 
fAWxDdUpublic final float[] fAWxDdU
- 
spatialStackMaximum tree depth .. 32 levels??
- 
matrixWritepublic final float[] matrixWrite
- 
collisionResultsBIHTree
- 
bihSwapTmppublic final float[] bihSwapTmp
- 
bihStack
 
- 
- 
Method Details- 
getAcquire an instance of the TempVar class. You have to release the instance after use by calling the release() method. If more than STACK_SIZE (currently 5) instances are requested in a single thread then an ArrayIndexOutOfBoundsException will be thrown.- Returns:
- A TempVar instance
 
- 
releasepublic void release()Releases this instance of TempVars. Once released, the contents of the TempVars are undefined. The TempVars must be released in the opposite order that they are retrieved, e.g. Acquiring vars1, then acquiring vars2, vars2 MUST be released first otherwise an exception will be thrown.
 
-