Javadoc
Sets the interleaved vertex buffer reference to the specified
buffer object. The buffer must contain a java.nio.FloatBuffer object.
The vertex components must be stored in a predetermined
order in the buffer. The order is: texture coordinates, colors,
normals, and positional coordinates.
Vertex attributes are not supported in interleaved mode.
In the case of texture
coordinates, the values for each texture coordinate set
are stored in order from 0 through texCoordSetCount-1. Only those
components that are enabled appear in the vertex. The number
of words per vertex depends on which vertex components are
enabled. Texture coordinates, if enabled, use 2 words per
texture coordinate set per vertex for
TEXTURE_COORDINATE_2
, 3 words per texture
coordinate set per vertex for
TEXTURE_COORDINATE_3
or 4 words per texture
coordinate set per vertex for
TEXTURE_COORDINATE_4
. Colors, if enabled, use 3
words per vertex for COLOR_3
or 4 words per vertex
for COLOR_4
. Normals, if enabled, use 3 words per
vertex. Positional coordinates, which are always enabled, use
3 words per vertex. For example, the format of interleaved
data for a GeometryArray object whose vertexFormat includes
COORDINATES
, COLOR_3
, and
NORMALS
would be: red, green,
blue, Nx, Ny, Nz, x,
y, z. All components of a vertex are stored in
adjacent memory locations. The first component of vertex 0 is
stored beginning at index 0 in the buffer. The first component
of vertex 1 is stored beginning at index
words_per_vertex in the buffer. The total number of
words needed to store n vertices is
words_per_vertex*n.