Top Description Fields Constructors Methods
com.sun.prism.impl

pack-priv final Class MeshTempState

extends Object
Class Inheritance
Imports
com.sun.javafx.geom.Quat4f, .Vec2f, .Vec3f

* Temporary state, used to reduce the occurrence of temporary garbage * while computing things such as Quat, Normal, Tangent or Bitangent. * Since these operations happen extremely often and must be very fast, * we need to reduce the load on the garbage collector. * *

Field Summary

Modifier and TypeField and Description
pack-priv int[]
indexBuffer

A temporary int indexBuffer array Length: nFaces * 3

pack-priv short[]
indexBufferShort

A temporary short indexBuffer array Length: nFaces * 3

pack-priv final float[][]
matrix

A temporary 3 by 3 float matrix used by BaseMesh to compute quat.

pack-priv MeshVertex[]
pool

A temporary MeshVertex array for all possible vertices.

pack-priv MeshVertex[]
pVertex

A temporary MeshVertex array Length: nVerts

pack-priv final Quat4f
quat

A temporary Quat4f used by BaseMesh to build quat.

pack-priv final int[]
smFace

Temporary variables used by BaseMesh to compute TBN.

private static final ThreadLocal<MeshTempState>
pack-priv final int[]
pack-priv final Vec3f[]
pack-priv final int[]
pack-priv final Vec3f[]
pack-priv final int[]
pack-priv final Vec2f[]
pack-priv final int[]
pack-priv final Vec2f
vec2f1

Temporary Vec2fs used by MeshUtil to fix tangent space.

pack-priv final Vec2f
pack-priv final Vec3f
vec3f1

Temporary Vec3fs used by MeshUtil and BaseMesh to compute/adjust normals.

pack-priv final Vec3f
pack-priv final Vec3f
pack-priv final Vec3f
pack-priv final Vec3f
pack-priv final Vec3f
pack-priv final float[]
vector

A temporary float array used by BaseMesh to compute quat.

pack-priv float[]
vertexBuffer

A temporary vertexBuffer array Length: nNewVerts * VERTEX_SIZE

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static MeshTempState
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

indexBufferback to summary
pack-priv int[] indexBuffer

A temporary int indexBuffer array Length: nFaces * 3

indexBufferShortback to summary
pack-priv short[] indexBufferShort

A temporary short indexBuffer array Length: nFaces * 3

matrixback to summary
pack-priv final float[][] matrix

A temporary 3 by 3 float matrix used by BaseMesh to compute quat.

poolback to summary
pack-priv MeshVertex[] pool

A temporary MeshVertex array for all possible vertices. Length: nFaces * 3

pVertexback to summary
pack-priv MeshVertex[] pVertex

A temporary MeshVertex array Length: nVerts

quatback to summary
pack-priv final Quat4f quat

A temporary Quat4f used by BaseMesh to build quat.

smFaceback to summary
pack-priv final int[] smFace

Temporary variables used by BaseMesh to compute TBN.

tempStateRefback to summary
private static final ThreadLocal<MeshTempState> tempStateRef
triNormalIndexback to summary
pack-priv final int[] triNormalIndex
triNormalsback to summary
pack-priv final Vec3f[] triNormals
triPointIndexback to summary
pack-priv final int[] triPointIndex
triPointsback to summary
pack-priv final Vec3f[] triPoints
triTexCoordIndexback to summary
pack-priv final int[] triTexCoordIndex
triTexCoordsback to summary
pack-priv final Vec2f[] triTexCoords
triVertsback to summary
pack-priv final int[] triVerts
vec2f1back to summary
pack-priv final Vec2f vec2f1

Temporary Vec2fs used by MeshUtil to fix tangent space.

vec2f2back to summary
pack-priv final Vec2f vec2f2
vec3f1back to summary
pack-priv final Vec3f vec3f1

Temporary Vec3fs used by MeshUtil and BaseMesh to compute/adjust normals.

vec3f2back to summary
pack-priv final Vec3f vec3f2
vec3f3back to summary
pack-priv final Vec3f vec3f3
vec3f4back to summary
pack-priv final Vec3f vec3f4
vec3f5back to summary
pack-priv final Vec3f vec3f5
vec3f6back to summary
pack-priv final Vec3f vec3f6
vectorback to summary
pack-priv final float[] vector

A temporary float array used by BaseMesh to compute quat.

vertexBufferback to summary
pack-priv float[] vertexBuffer

A temporary vertexBuffer array Length: nNewVerts * VERTEX_SIZE

Constructor Detail

MeshTempStateback to summary
private MeshTempState()

Method Detail

getInstanceback to summary
pack-priv static MeshTempState getInstance()