vertexBuffer

fun vertexBuffer(vertexBuffer: VertexBuffer, primitive: DrawPrimitive, vertexOffset: Int = 0, vertexCount: Int = vertexBuffer.vertexCount)(source)

Draws a VertexBuffer using primitive


fun vertexBuffer(vertexBuffers: List<VertexBuffer>, primitive: DrawPrimitive, offset: Int = 0, vertexCount: Int = vertexBuffers[0].vertexCount)(source)

Draws the specified vertex buffers using the given draw primitive and parameters.

Parameters

vertexBuffers

A list of vertex buffers to be drawn.

primitive

The type of drawing primitive to use for rendering (e.g., triangles, lines).

offset

The starting index in the vertex buffer from which to begin drawing. Default is 0.

vertexCount

The number of vertices to be drawn from the vertex buffer. Default is the vertex count of the first buffer in the list.


fun vertexBuffer(    indexBuffer: IndexBuffer,     vertexBuffers: List<VertexBuffer>,     primitive: DrawPrimitive,     offset: Int = 0,     indexCount: Int = indexBuffer.indexCount)(source)

Draws a vertex buffer using the specified parameters.

Parameters

indexBuffer

The index buffer that contains indices for drawing vertices.

vertexBuffers

A list of vertex buffers containing vertex data.

primitive

The primitive type used for drawing (e.g., triangle, line).

offset

The starting offset in the index buffer to begin drawing. Defaults to 0.

indexCount

The number of indices to use for drawing. Defaults to the total index count in the index buffer.