setGeometryAt

actual fun setGeometryAt(instance: EntityInstance, primitiveIndex: Int, type: RenderableManager.PrimitiveType, vb: VertexBuffer, ib: IndexBuffer, offset: Int, count: Int)

Changes the geometry for a primitive.

Parameters

instance

Instance of the component obtained from getInstance()

primitiveIndex

the primitive of interest

type

primitive type

vb

vertex buffer for this primitive

ib

index buffer for this primitive

offset

index offset in the index buffer

count

number of indices to render


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

Changes the geometry for a primitive (non-indexed).

Parameters

instance

Instance of the component obtained from getInstance()

primitiveIndex

the primitive of interest

type

primitive type

vb

vertex buffer for this primitive

offset

vertex offset in the vertex buffer

count

number of vertices to render

expect fun setGeometryAt(instance: EntityInstance, primitiveIndex: Int, type: RenderableManager.PrimitiveType, vb: VertexBuffer, ib: IndexBuffer, offset: Int, count: Int)

Changes the geometry for a primitive.

Parameters

instance

Instance of the component obtained from getInstance()

primitiveIndex

the primitive of interest

type

primitive type

vb

vertex buffer for this primitive

ib

index buffer for this primitive

offset

index offset in the index buffer

count

number of indices to render


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

Changes the geometry for a primitive (non-indexed).

Parameters

instance

Instance of the component obtained from getInstance()

primitiveIndex

the primitive of interest

type

primitive type

vb

vertex buffer for this primitive

offset

vertex offset in the vertex buffer

count

number of vertices to render

actual fun setGeometryAt(instance: EntityInstance, primitiveIndex: Int, type: RenderableManager.PrimitiveType, vb: VertexBuffer, ib: IndexBuffer, offset: Int, count: Int)

Changes the geometry for a primitive.

Parameters

instance

Instance of the component obtained from getInstance()

primitiveIndex

the primitive of interest

type

primitive type

vb

vertex buffer for this primitive

ib

index buffer for this primitive

offset

index offset in the index buffer

count

number of indices to render


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

Changes the geometry for a primitive (non-indexed).

Parameters

instance

Instance of the component obtained from getInstance()

primitiveIndex

the primitive of interest

type

primitive type

vb

vertex buffer for this primitive

offset

vertex offset in the vertex buffer

count

number of vertices to render

actual fun setGeometryAt(instance: EntityInstance, primitiveIndex: Int, type: RenderableManager.PrimitiveType, vb: VertexBuffer, ib: IndexBuffer, offset: Int, count: Int)

Changes the geometry for a primitive.

Parameters

instance

Instance of the component obtained from getInstance()

primitiveIndex

the primitive of interest

type

primitive type

vb

vertex buffer for this primitive

ib

index buffer for this primitive

offset

index offset in the index buffer

count

number of indices to render


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

Changes the geometry for a primitive (non-indexed).

Parameters

instance

Instance of the component obtained from getInstance()

primitiveIndex

the primitive of interest

type

primitive type

vb

vertex buffer for this primitive

offset

vertex offset in the vertex buffer

count

number of vertices to render

actual fun setGeometryAt(instance: EntityInstance, primitiveIndex: Int, type: RenderableManager.PrimitiveType, vb: VertexBuffer, ib: IndexBuffer, offset: Int, count: Int)

Changes the geometry for a primitive.

Parameters

instance

Instance of the component obtained from getInstance()

primitiveIndex

the primitive of interest

type

primitive type

vb

vertex buffer for this primitive

ib

index buffer for this primitive

offset

index offset in the index buffer

count

number of indices to render


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

Changes the geometry for a primitive (non-indexed).

Parameters

instance

Instance of the component obtained from getInstance()

primitiveIndex

the primitive of interest

type

primitive type

vb

vertex buffer for this primitive

offset

vertex offset in the vertex buffer

count

number of vertices to render