setGeometryAt

fun setGeometryAt(instance: EntityInstance, primitiveIndex: Int, type: RenderableManager.PrimitiveType, vertices: VertexBuffer, indices: IndexBuffer, offset: Int, count: Int)

Changes the geometry for a primitive.

Parameters

primitiveIndex

the primitive of interest

type

primitive type

vertices

vertex buffer for this primitive

indices

index buffer for this primitive

offset

index offset in the index buffer

count

number of indices to render


fun setGeometryAt(instance: EntityInstance, primitiveIndex: Int, type: RenderableManager.PrimitiveType, vertices: VertexBuffer, offset: Int, count: Int)

Changes the geometry for a non-indexed primitive.

Parameters

offset

vertex offset in the vertex buffer

count

number of vertices to render