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
Modifier and TypeFieldDescriptionfinal BoundingBox
BoundingVolumes (for shadows etc.)final ArrayList<BIHNode.BIHStackData>
final float[]
final CollisionResults
BIHTreefinal ColorRGBA
Colorfinal Eigen3f
Eigenfinal float[]
final float[]
final float[]
final float[]
final FloatBuffer
final float[]
BoundingBox ray collisionfinal IntBuffer
For interfacing with OpenGL in Renderer.final IntBuffer
final float[]
final Plane
Planefinal Quaternion
General quaternions.final Quaternion
final float[]
final float[]
Skinning buffersfinal float[]
final Spatial[]
Maximum tree depth ..final Matrix3f
General matrices.final Matrix4f
final Matrix4f
final Vector3f[]
final Triangle
Fetching triangle from meshfinal Vector3f
General vectors.final Vector3f
final Vector3f
final Vector2f
2D vectorfinal Vector2f
final Vector3f
final Vector3f
final Vector4f
final Vector4f
final Vector3f
final Vector3f
final Vector3f
final Vector3f
final 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.
-