public class TLspVertexArrayFactory extends Object
ILspVertexArray
instances.Modifier and Type | Method and Description |
---|---|
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() . |
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() . |
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() . |
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() . |
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() . |
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() . |
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() . |
static List<ILspVertexAttribute> |
createInterleavedVertexFormat(int aGLInterleavedArrayFormat)
Creates a list of
ILspVertexAttribute describing a vertex
attribute layout as used with glInterleavedArrays() . |
public static ILspIndexedVertexArray createInterleavedIndexedArray(Buffer aBuffer, int aNbVertices, int aGLInterleavedArrayFormat, IntBuffer aElementArray, int aIndexCount, TLspPrimitiveType aPrimitiveType)
ILspVertexArray
with the specified data and a vertex attribute layout as
used with glInterleavedArrays()
.aBuffer
- the buffer containing vertex dataaNbVertices
- the number of verticesaGLInterleavedArrayFormat
- 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 arrayaIndexCount
- the number of indicesaPrimitiveType
- the primitive type to be associated with the element arrayILspVertexArray
public static ILspIndexedVertexArray createInterleavedIndexedMultiArray(Buffer aBuffer, int aNbVertices, int aGLInterleavedArrayFormat, IntBuffer[] aElementArrays, int[] aIndexCounts, TLspPrimitiveType aPrimitiveType)
ILspVertexArray
with the specified data and a vertex attribute layout as
used with glMultiDrawElements()
.aBuffer
- the buffer containing vertex dataaNbVertices
- the number of verticesaGLInterleavedArrayFormat
- 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 arrayaIndexCounts
- the number of indices in each of the element arraysaPrimitiveType
- the primitive type to be associated with the element arraysILspVertexArray
public static ILspIndexedVertexArray createInterleavedIndexedArray(Buffer aBuffer, int aNbVertices, ILcdPoint aCoordinateOrigin, int aGLInterleavedArrayFormat, IntBuffer aElementArray, int aIndexCount, TLspPrimitiveType aPrimitiveType)
ILspVertexArray
with
the specified data and a vertex attribute layout as used with
glInterleavedArrays()
.aBuffer
- the buffer containing vertex dataaNbVertices
- the number of verticesaCoordinateOrigin
- the coordinate originaGLInterleavedArrayFormat
- 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 arrayaIndexCount
- the number of indices in the element arrayaPrimitiveType
- the primitive type to be associated with the element arrayILspVertexArray
public static ILspNonIndexedVertexArray createInterleavedNonIndexedArray(Buffer aBuffer, int aNbVertices, int aGLInterleavedArrayFormat, TLspPrimitiveType aPrimitiveType)
ILspVertexArray
with
the specified data and a vertex attribute layout as used with
glInterleavedArrays()
.aBuffer
- the buffer containing vertex dataaNbVertices
- the number of verticesaGLInterleavedArrayFormat
- 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 arrayILspVertexArray
public static ILspNonIndexedVertexArray createInterleavedNonIndexedArray(Buffer aBuffer, int aNbVertices, ILcdPoint aCoordinateOrigin, int aGLInterleavedArrayFormat, TLspPrimitiveType aPrimitiveType)
ILspVertexArray
with
the specified data and a vertex attribute layout as used with
glInterleavedArrays()
.aBuffer
- the buffer containing vertex dataaNbVertices
- the number of vertices in the bufferaCoordinateOrigin
- the coordinate originaGLInterleavedArrayFormat
- 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 arrayILspVertexArray
public static ILspVertexArray createInterleavedArray(Buffer aBuffer, int aNbVertices, int aGLInterleavedArrayFormat)
ILspVertexArray
with
the specified data and a vertex attribute layout as used with
glInterleavedArrays()
.aBuffer
- the buffer containing vertex dataaNbVertices
- the number of verticesaGLInterleavedArrayFormat
- one of the vertex array format constants accepted by glInterleavedArrays()
, e.g. GL_T2F_N3F_V3F
ILspVertexArray
public static ILspVertexArray createInterleavedArray(Buffer aBuffer, int aNbVertices, ILcdPoint aCoordinateOrigin, int aGLInterleavedArrayFormat)
ILspVertexArray
with
the specified data and a vertex attribute layout as used with
glInterleavedArrays()
.aBuffer
- the buffer containing vertex dataaNbVertices
- the number of verticesaCoordinateOrigin
- the coordinate originaGLInterleavedArrayFormat
- one of the vertex array format constants accepted by glInterleavedArrays()
, e.g. GL_T2F_N3F_V3F
ILspVertexArray
public static List<ILspVertexAttribute> createInterleavedVertexFormat(int aGLInterleavedArrayFormat)
ILspVertexAttribute
describing a vertex
attribute layout as used with glInterleavedArrays()
.aGLInterleavedArrayFormat
- one of the vertex array format constants accepted by glInterleavedArrays()
, e.g. GL_T2F_N3F_V3F