Class TLspVertexArrayFactory

java.lang.Object
com.luciad.view.lightspeed.services.vertexarray.TLspVertexArrayFactory

public class TLspVertexArrayFactory extends Object
A factory class that creates ILspVertexArray instances.
Since:
2012.0
  • Method Details

    • createInterleavedIndexedArray

      public static ILspIndexedVertexArray createInterleavedIndexedArray(Buffer aBuffer, int aNbVertices, int aGLInterleavedArrayFormat, IntBuffer aElementArray, int aIndexCount, TLspPrimitiveType aPrimitiveType)
      Creates an ILspVertexArray with the specified data and a vertex attribute layout as used with glInterleavedArrays().
      Parameters:
      aBuffer - the buffer containing vertex data
      aNbVertices - the number of vertices
      aGLInterleavedArrayFormat - one of the vertex array format constants accepted by glInterleavedArrays(), e.g. GL_T2F_N3F_V3F
      aElementArray - the element array to be associated with the vertex array
      aIndexCount - the number of indices
      aPrimitiveType - 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 an ILspVertexArray with the specified data and a vertex attribute layout as used with glMultiDrawElements().
      Parameters:
      aBuffer - the buffer containing vertex data
      aNbVertices - the number of vertices
      aGLInterleavedArrayFormat - one of the vertex array format constants accepted by glInterleavedArrays(), e.g. GL_T2F_N3F_V3F
      aElementArrays - the element arrays to be associated with the vertex array
      aIndexCounts - the number of indices in each of the element arrays
      aPrimitiveType - 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 an ILspVertexArray with the specified data and a vertex attribute layout as used with glInterleavedArrays().
      Parameters:
      aBuffer - the buffer containing vertex data
      aNbVertices - the number of vertices
      aCoordinateOrigin - the coordinate origin
      aGLInterleavedArrayFormat - one of the vertex array format constants accepted by glInterleavedArrays(), e.g. GL_T2F_N3F_V3F
      aElementArray - the element array to be associated with the vertex array
      aIndexCount - the number of indices in the element array
      aPrimitiveType - 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 an ILspVertexArray with the specified data and a vertex attribute layout as used with glInterleavedArrays().
      Parameters:
      aBuffer - the buffer containing vertex data
      aNbVertices - the number of vertices
      aGLInterleavedArrayFormat - one of the vertex array format constants accepted by glInterleavedArrays(), e.g. GL_T2F_N3F_V3F
      aPrimitiveType - 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 an ILspVertexArray with the specified data and a vertex attribute layout as used with glInterleavedArrays().
      Parameters:
      aBuffer - the buffer containing vertex data
      aNbVertices - the number of vertices in the buffer
      aCoordinateOrigin - the coordinate origin
      aGLInterleavedArrayFormat - one of the vertex array format constants accepted by glInterleavedArrays(), e.g. GL_T2F_N3F_V3F
      aPrimitiveType - 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 an ILspVertexArray with the specified data and a vertex attribute layout as used with glInterleavedArrays().
      Parameters:
      aBuffer - the buffer containing vertex data
      aNbVertices - the number of vertices
      aGLInterleavedArrayFormat - one of the vertex array format constants accepted by glInterleavedArrays(), e.g. GL_T2F_N3F_V3F
      Returns:
      a new ILspVertexArray
    • createInterleavedArray

      public static ILspVertexArray createInterleavedArray(Buffer aBuffer, int aNbVertices, ILcdPoint aCoordinateOrigin, int aGLInterleavedArrayFormat)
      Creates an ILspVertexArray with the specified data and a vertex attribute layout as used with glInterleavedArrays().
      Parameters:
      aBuffer - the buffer containing vertex data
      aNbVertices - the number of vertices
      aCoordinateOrigin - the coordinate origin
      aGLInterleavedArrayFormat - one of the vertex array format constants accepted by glInterleavedArrays(), e.g. GL_T2F_N3F_V3F
      Returns:
      a new ILspVertexArray
    • createInterleavedVertexFormat

      public static List<ILspVertexAttribute> createInterleavedVertexFormat(int aGLInterleavedArrayFormat)
      Creates a list of ILspVertexAttribute describing a vertex attribute layout as used with glInterleavedArrays().
      Parameters:
      aGLInterleavedArrayFormat - one of the vertex array format constants accepted by glInterleavedArrays(), e.g. GL_T2F_N3F_V3F
      Returns:
      a list of corresponding vertex attributes