Class TLspVertexArrayFactory
java.lang.Object
com.luciad.view.lightspeed.services.vertexarray.TLspVertexArrayFactory
A factory class that creates
ILspVertexArray instances.- Since:
- 2012.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic ILspVertexArraycreateInterleavedArray(Buffer aBuffer, int aNbVertices, int aGLInterleavedArrayFormat) Creates anILspVertexArraywith the specified data and a vertex attribute layout as used withglInterleavedArrays().static ILspVertexArraycreateInterleavedArray(Buffer aBuffer, int aNbVertices, ILcdPoint aCoordinateOrigin, int aGLInterleavedArrayFormat) Creates anILspVertexArraywith the specified data and a vertex attribute layout as used withglInterleavedArrays().static ILspIndexedVertexArraycreateInterleavedIndexedArray(Buffer aBuffer, int aNbVertices, int aGLInterleavedArrayFormat, IntBuffer aElementArray, int aIndexCount, TLspPrimitiveType aPrimitiveType) Creates anILspVertexArraywith the specified data and a vertex attribute layout as used withglInterleavedArrays().static ILspIndexedVertexArraycreateInterleavedIndexedArray(Buffer aBuffer, int aNbVertices, ILcdPoint aCoordinateOrigin, int aGLInterleavedArrayFormat, IntBuffer aElementArray, int aIndexCount, TLspPrimitiveType aPrimitiveType) Creates anILspVertexArraywith the specified data and a vertex attribute layout as used withglInterleavedArrays().static ILspIndexedVertexArraycreateInterleavedIndexedMultiArray(Buffer aBuffer, int aNbVertices, int aGLInterleavedArrayFormat, IntBuffer[] aElementArrays, int[] aIndexCounts, TLspPrimitiveType aPrimitiveType) Creates anILspVertexArraywith the specified data and a vertex attribute layout as used withglMultiDrawElements().static ILspNonIndexedVertexArraycreateInterleavedNonIndexedArray(Buffer aBuffer, int aNbVertices, int aGLInterleavedArrayFormat, TLspPrimitiveType aPrimitiveType) Creates anILspVertexArraywith the specified data and a vertex attribute layout as used withglInterleavedArrays().static ILspNonIndexedVertexArraycreateInterleavedNonIndexedArray(Buffer aBuffer, int aNbVertices, ILcdPoint aCoordinateOrigin, int aGLInterleavedArrayFormat, TLspPrimitiveType aPrimitiveType) Creates anILspVertexArraywith the specified data and a vertex attribute layout as used withglInterleavedArrays().static List<ILspVertexAttribute> createInterleavedVertexFormat(int aGLInterleavedArrayFormat) Creates a list ofILspVertexAttributedescribing a vertex attribute layout as used withglInterleavedArrays().
-
Method Details
-
createInterleavedIndexedArray
public static ILspIndexedVertexArray createInterleavedIndexedArray(Buffer aBuffer, int aNbVertices, int aGLInterleavedArrayFormat, IntBuffer aElementArray, int aIndexCount, TLspPrimitiveType aPrimitiveType) Creates anILspVertexArraywith the specified data and a vertex attribute layout as used withglInterleavedArrays().- Parameters:
aBuffer- the buffer containing vertex dataaNbVertices- the number of verticesaGLInterleavedArrayFormat- one of the vertex array format constants accepted byglInterleavedArrays(), e.g.GL_T2F_N3F_V3FaElementArray- the element array to be associated with the vertex arrayaIndexCount- the number of indicesaPrimitiveType- the primitive type to be associated with the element array- Returns:
- a new
ILspVertexArray
-
createInterleavedIndexedMultiArray
public static ILspIndexedVertexArray createInterleavedIndexedMultiArray(Buffer aBuffer, int aNbVertices, int aGLInterleavedArrayFormat, IntBuffer[] aElementArrays, int[] aIndexCounts, TLspPrimitiveType aPrimitiveType) Creates anILspVertexArraywith the specified data and a vertex attribute layout as used withglMultiDrawElements().- Parameters:
aBuffer- the buffer containing vertex dataaNbVertices- the number of verticesaGLInterleavedArrayFormat- one of the vertex array format constants accepted byglInterleavedArrays(), e.g.GL_T2F_N3F_V3FaElementArrays- the element arrays to be associated with the vertex arrayaIndexCounts- the number of indices in each of the element arraysaPrimitiveType- the primitive type to be associated with the element arrays- Returns:
- a new
ILspVertexArray
-
createInterleavedIndexedArray
public static ILspIndexedVertexArray createInterleavedIndexedArray(Buffer aBuffer, int aNbVertices, ILcdPoint aCoordinateOrigin, int aGLInterleavedArrayFormat, IntBuffer aElementArray, int aIndexCount, TLspPrimitiveType aPrimitiveType) Creates anILspVertexArraywith the specified data and a vertex attribute layout as used withglInterleavedArrays().- Parameters:
aBuffer- the buffer containing vertex dataaNbVertices- the number of verticesaCoordinateOrigin- the coordinate originaGLInterleavedArrayFormat- one of the vertex array format constants accepted byglInterleavedArrays(), e.g.GL_T2F_N3F_V3FaElementArray- the element array to be associated with the vertex arrayaIndexCount- the number of indices in the element arrayaPrimitiveType- the primitive type to be associated with the element array- Returns:
- a new
ILspVertexArray
-
createInterleavedNonIndexedArray
public static ILspNonIndexedVertexArray createInterleavedNonIndexedArray(Buffer aBuffer, int aNbVertices, int aGLInterleavedArrayFormat, TLspPrimitiveType aPrimitiveType) Creates anILspVertexArraywith the specified data and a vertex attribute layout as used withglInterleavedArrays().- Parameters:
aBuffer- the buffer containing vertex dataaNbVertices- the number of verticesaGLInterleavedArrayFormat- one of the vertex array format constants accepted byglInterleavedArrays(), e.g.GL_T2F_N3F_V3FaPrimitiveType- the primitive type to be associated with the element array- Returns:
- a new
ILspVertexArray
-
createInterleavedNonIndexedArray
public static ILspNonIndexedVertexArray createInterleavedNonIndexedArray(Buffer aBuffer, int aNbVertices, ILcdPoint aCoordinateOrigin, int aGLInterleavedArrayFormat, TLspPrimitiveType aPrimitiveType) Creates anILspVertexArraywith the specified data and a vertex attribute layout as used withglInterleavedArrays().- Parameters:
aBuffer- the buffer containing vertex dataaNbVertices- the number of vertices in the bufferaCoordinateOrigin- the coordinate originaGLInterleavedArrayFormat- one of the vertex array format constants accepted byglInterleavedArrays(), e.g.GL_T2F_N3F_V3FaPrimitiveType- the primitive type to be associated with the element array- Returns:
- a new
ILspVertexArray
-
createInterleavedArray
public static ILspVertexArray createInterleavedArray(Buffer aBuffer, int aNbVertices, int aGLInterleavedArrayFormat) Creates anILspVertexArraywith the specified data and a vertex attribute layout as used withglInterleavedArrays().- Parameters:
aBuffer- the buffer containing vertex dataaNbVertices- the number of verticesaGLInterleavedArrayFormat- one of the vertex array format constants accepted byglInterleavedArrays(), e.g.GL_T2F_N3F_V3F- Returns:
- a new
ILspVertexArray
-
createInterleavedArray
public static ILspVertexArray createInterleavedArray(Buffer aBuffer, int aNbVertices, ILcdPoint aCoordinateOrigin, int aGLInterleavedArrayFormat) Creates anILspVertexArraywith the specified data and a vertex attribute layout as used withglInterleavedArrays().- Parameters:
aBuffer- the buffer containing vertex dataaNbVertices- the number of verticesaCoordinateOrigin- the coordinate originaGLInterleavedArrayFormat- one of the vertex array format constants accepted byglInterleavedArrays(), e.g.GL_T2F_N3F_V3F- Returns:
- a new
ILspVertexArray
-
createInterleavedVertexFormat
public static List<ILspVertexAttribute> createInterleavedVertexFormat(int aGLInterleavedArrayFormat) Creates a list ofILspVertexAttributedescribing a vertex attribute layout as used withglInterleavedArrays().- Parameters:
aGLInterleavedArrayFormat- one of the vertex array format constants accepted byglInterleavedArrays(), e.g.GL_T2F_N3F_V3F- Returns:
- a list of corresponding vertex attributes
-