APIdia Launch Partner
Top Description Inners Fields Constructors Methods
com.sun.prism.impl

public abstract Class BaseMesh

extends BaseGraphicsResource
implements Mesh
Class Inheritance
All Implemented Interfaces
com.sun.prism.Mesh, com.sun.prism.GraphicsResource
Known Direct Subclasses
com.sun.prism.mtl.MTLMesh, com.sun.prism.d3d.D3DMesh, com.sun.prism.es2.ES2Mesh
Imports
com.sun.javafx.geom.Quat4f, .Vec2f, .Vec3f, com.sun.prism.Mesh, java.util.Arrays, .HashMap, javafx.scene.shape.VertexFormat, com.sun.javafx.logging.PlatformLogger

Todo

3D - Need documentation

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
pack-priv class

Field Summary

Modifier and TypeField and Description
private boolean
private boolean
private float[]
private float[]
private float[]
private boolean[]
public static final int
private int[]
private int[]
private short[]
private int
private int
private HashMap<Integer, BaseMesh.MeshGeomComp2VB>
protected static final int
protected static final int
private int
private int
private int
private HashMap<Integer, BaseMesh.MeshGeomComp2VB>
protected static final int
protected static final int
private float[]
private int[]
private HashMap<Integer, BaseMesh.MeshGeomComp2VB>
protected static final int
protected static final int
private float[]
protected static final int
private float[]
Inherited from com.sun.prism.impl.BaseGraphicsResource:
disposerRecord

Constructor Summary

AccessConstructor and Description
protected
BaseMesh(Disposer.Record disposerRecord)

Method Summary

Modifier and TypeMethod and Description
public boolean
buildGeometry(boolean userDefinedNormals, float[] points, int[] pointsFromAndLengthIndices, float[] normals, int[] normalsFromAndLengthIndices, float[] texCoords, int[] texCoordsFromAndLengthIndices, int[] faces, int[] facesFromAndLengthIndices, int[] faceSmoothingGroups, int[] faceSmoothingGroupsFromAndLengthIndices)

Implements com.sun.prism.Mesh.buildGeometry.

private void
buildIndexBuffer(MeshVertex[] pool, int[] indexBuffer, short[] indexBufferShort)

public abstract boolean
buildNativeGeometry(float[] vertexBuffer, int vertexBufferLength, int[] indexBufferInt, int indexBufferLength)

public abstract boolean
buildNativeGeometry(float[] vertexBuffer, int vertexBufferLength, short[] indexBufferShort, int indexBufferLength)

private boolean
buildPNTGeometry(float[] points, int[] pointsFromAndLengthIndices, float[] normals, int[] normalsFromAndLengthIndices, float[] texCoords, int[] texCoordsFromAndLengthIndices, int[] faces, int[] facesFromAndLengthIndices)

private boolean
buildPTGeometry(float[] pos, float[] uv, int[] faces, int[] smoothing)

private void
buildVertexBuffer(MeshVertex[] pVerts, float[] vertexBuffer)

private void
buildVSQuat(Vec3f[] tm, Quat4f quat)

private void
private void
computeTBNormal(MeshVertex[] pool, MeshVertex[] pVertex, int[] indexBuffer)

private void
convertNormalsToQuats(MeshTempState instance, int numberOfVertices, float[] normals, float[] tangents, float[] bitangents, float[] vertexBuffer, boolean[] dirtys)

private boolean
doBuildPNTGeometry(float[] points, float[] normals, float[] texCoords, int[] faces)

public int[]
getFace(int fIdx, int[] face)

public int
public int
public int
public Vec2f
getTVertex(int tIdx, Vec2f texCoord)

public Vec3f
getVertex(int pIdx, Vec3f vertex)

public boolean
pack-priv int
pack-priv int
pack-priv boolean
private boolean
updatePNTGeometry(float[] points, int[] pointsFromAndLengthIndices, float[] normals, int[] normalsFromAndLengthIndices, float[] texCoords, int[] texCoordsFromAndLengthIndices)

Inherited from com.sun.prism.impl.BaseGraphicsResource:
dispose

Field Detail

allHardEdgesback to summary
private boolean allHardEdges
allSameSmoothingback to summary
private boolean allSameSmoothing
cachedBitangentsback to summary
private float[] cachedBitangents
cachedNormalsback to summary
private float[] cachedNormals
cachedTangentsback to summary
private float[] cachedTangents
dirtyVerticesback to summary
private boolean[] dirtyVertices
FACE_MEMBERS_SIZEback to summary
public static final int FACE_MEMBERS_SIZE
facesback to summary
private int[] faces
indexBufferback to summary
private int[] indexBuffer
indexBufferShortback to summary
private short[] indexBufferShort
indexBufferSizeback to summary
private int indexBufferSize
nFacesback to summary
private int nFaces
normal2vbMapback to summary
private HashMap<Integer, BaseMesh.MeshGeomComp2VB> normal2vbMap
NORMAL_SIZEback to summary
protected static final int NORMAL_SIZE
NORMAL_SIZE_VBback to summary
protected static final int NORMAL_SIZE_VB
nTVertsback to summary
private int nTVerts
numberOfVerticesback to summary
private int numberOfVertices
nVertsback to summary
private int nVerts
point2vbMapback to summary
private HashMap<Integer, BaseMesh.MeshGeomComp2VB> point2vbMap
POINT_SIZEback to summary
protected static final int POINT_SIZE
POINT_SIZE_VBback to summary
protected static final int POINT_SIZE_VB
posback to summary
private float[] pos
smoothingback to summary
private int[] smoothing
texCoord2vbMapback to summary
private HashMap<Integer, BaseMesh.MeshGeomComp2VB> texCoord2vbMap
TEXCOORD_SIZEback to summary
protected static final int TEXCOORD_SIZE
TEXCOORD_SIZE_VBback to summary
protected static final int TEXCOORD_SIZE_VB
uvback to summary
private float[] uv
VERTEX_SIZE_VBback to summary
protected static final int VERTEX_SIZE_VB
vertexBufferback to summary
private float[] vertexBuffer

Constructor Detail

BaseMeshback to summary
protected BaseMesh(Disposer.Record disposerRecord)

Method Detail

buildGeometryback to summary
public boolean buildGeometry(boolean userDefinedNormals, float[] points, int[] pointsFromAndLengthIndices, float[] normals, int[] normalsFromAndLengthIndices, float[] texCoords, int[] texCoordsFromAndLengthIndices, int[] faces, int[] facesFromAndLengthIndices, int[] faceSmoothingGroups, int[] faceSmoothingGroupsFromAndLengthIndices)

Implements com.sun.prism.Mesh.buildGeometry.

Annotations
@Override
buildIndexBufferback to summary
private void buildIndexBuffer(MeshVertex[] pool, int[] indexBuffer, short[] indexBufferShort)
buildNativeGeometryback to summary
public abstract boolean buildNativeGeometry(float[] vertexBuffer, int vertexBufferLength, int[] indexBufferInt, int indexBufferLength)
buildNativeGeometryback to summary
public abstract boolean buildNativeGeometry(float[] vertexBuffer, int vertexBufferLength, short[] indexBufferShort, int indexBufferLength)
buildPNTGeometryback to summary
private boolean buildPNTGeometry(float[] points, int[] pointsFromAndLengthIndices, float[] normals, int[] normalsFromAndLengthIndices, float[] texCoords, int[] texCoordsFromAndLengthIndices, int[] faces, int[] facesFromAndLengthIndices)
buildPTGeometryback to summary
private boolean buildPTGeometry(float[] pos, float[] uv, int[] faces, int[] smoothing)
buildVertexBufferback to summary
private void buildVertexBuffer(MeshVertex[] pVerts, float[] vertexBuffer)
buildVSQuatback to summary
private void buildVSQuat(Vec3f[] tm, Quat4f quat)
checkSmoothingGroupback to summary
private void checkSmoothingGroup()
computeTBNormalback to summary
private void computeTBNormal(MeshVertex[] pool, MeshVertex[] pVertex, int[] indexBuffer)
convertNormalsToQuatsback to summary
private void convertNormalsToQuats(MeshTempState instance, int numberOfVertices, float[] normals, float[] tangents, float[] bitangents, float[] vertexBuffer, boolean[] dirtys)
doBuildPNTGeometryback to summary
private boolean doBuildPNTGeometry(float[] points, float[] normals, float[] texCoords, int[] faces)
getFaceback to summary
public int[] getFace(int fIdx, int[] face)
getNumFacesback to summary
public int getNumFaces()
getNumTVertsback to summary
public int getNumTVerts()
getNumVertsback to summary
public int getNumVerts()
getTVertexback to summary
public Vec2f getTVertex(int tIdx, Vec2f texCoord)
getVertexback to summary
public Vec3f getVertex(int pIdx, Vec3f vertex)
isValidback to summary
public boolean isValid()

Implements com.sun.prism.Mesh.isValid.

Annotations
@Override
test_getNumberOfVerticesback to summary
pack-priv int test_getNumberOfVertices()
test_getVertexBufferLengthback to summary
pack-priv int test_getVertexBufferLength()
test_isVertexBufferNullback to summary
pack-priv boolean test_isVertexBufferNull()
updatePNTGeometryback to summary
private boolean updatePNTGeometry(float[] points, int[] pointsFromAndLengthIndices, float[] normals, int[] normalsFromAndLengthIndices, float[] texCoords, int[] texCoordsFromAndLengthIndices)
com.sun.prism.impl back to summary

public final Enum BaseMesh.FaceMembers

extends Enum<BaseMesh.FaceMembers>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final BaseMesh.FaceMembers
public static final BaseMesh.FaceMembers
public static final BaseMesh.FaceMembers
public static final BaseMesh.FaceMembers
public static final BaseMesh.FaceMembers
public static final BaseMesh.FaceMembers
public static final BaseMesh.FaceMembers

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static BaseMesh.FaceMembers
public static BaseMesh.FaceMembers[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

POINT0back to summary
public static final BaseMesh.FaceMembers POINT0
POINT1back to summary
public static final BaseMesh.FaceMembers POINT1
POINT2back to summary
public static final BaseMesh.FaceMembers POINT2
SMOOTHING_GROUPback to summary
public static final BaseMesh.FaceMembers SMOOTHING_GROUP
TEXCOORD0back to summary
public static final BaseMesh.FaceMembers TEXCOORD0
TEXCOORD1back to summary
public static final BaseMesh.FaceMembers TEXCOORD1
TEXCOORD2back to summary
public static final BaseMesh.FaceMembers TEXCOORD2

Constructor Detail

FaceMembersback to summary
private FaceMembers()

Method Detail

valueOfback to summary
public static BaseMesh.FaceMembers valueOf(String name)
valuesback to summary
public static BaseMesh.FaceMembers[] values()
com.sun.prism.impl back to summary

pack-priv Class BaseMesh.MeshGeomComp2VB

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final int
private final int
private int[]
private int

Constructor Summary

AccessConstructor and Description
pack-priv
MeshGeomComp2VB(int key, int loc)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
addLoc(int loc)

pack-priv int
pack-priv int
pack-priv int[]
pack-priv int
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

keyback to summary
private final int key
locback to summary
private final int loc
locsback to summary
private int[] locs
validLocsback to summary
private int validLocs

Constructor Detail

MeshGeomComp2VBback to summary
pack-priv MeshGeomComp2VB(int key, int loc)

Method Detail

addLocback to summary
pack-priv void addLoc(int loc)
getKeyback to summary
pack-priv int getKey()
getLocback to summary
pack-priv int getLoc()
getLocsback to summary
pack-priv int[] getLocs()
getValidLocsback to summary
pack-priv int getValidLocs()