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 Summary
FieldsModifier 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
-
intBuffer1
For interfacing with OpenGL in Renderer. -
intBuffer16
-
floatBuffer16
-
bbox
BoundingVolumes (for shadows etc.) -
skinPositions
public final float[] skinPositionsSkinning buffers -
skinNormals
public final float[] skinNormals -
skinTangents
public final float[] skinTangents -
triangle
Fetching triangle from mesh -
color
Color -
vect1
General vectors. -
vect2
-
vect3
-
vect4
-
vect5
-
vect6
-
vect7
-
vect8
-
vect9
-
vect10
-
vect4f1
-
vect4f2
-
tri
-
vect2d
2D vector -
vect2d2
-
tempMat3
General matrices. -
tempMat4
-
tempMat42
-
quat1
General quaternions. -
quat2
-
eigen
Eigen -
plane
Plane -
fWdU
public final float[] fWdUBoundingBox ray collision -
fAWdU
public final float[] fAWdU -
fDdU
public final float[] fDdU -
fADdU
public final float[] fADdU -
fAWxDdU
public final float[] fAWxDdU -
spatialStack
Maximum tree depth .. 32 levels?? -
matrixWrite
public final float[] matrixWrite -
collisionResults
BIHTree -
bihSwapTmp
public final float[] bihSwapTmp -
bihStack
-
-
Method Details
-
get
Acquire 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
-
release
public 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.
-