RenderableManager

actual class RenderableManager

Factory and manager for Renderables, which are entities that can be drawn.

Renderables are bundles of primitives, each with its own geometry and material. All primitives in a renderable share rendering attributes such as shadow casting, skinning, morphing, layer masks, and priority.

Creating renderables:

val entity = entityManager.create()
RenderableManager.Builder(1) // 1 primitive
.boundingBox(Box(-1f, -1f, -1f, 1f, 1f, 1f))
.material(0, materialInstance)
.geometry(0, PrimitiveType.TRIANGLES, vertexBuffer, indexBuffer, 0, 6)
.receiveShadows(true)
.castShadows(true)
.build(engine, entity)

scene.addEntity(entity)

Modifying renderables: To modify an existing renderable, use RenderableManager to get a temporary handle called an Instance. The instance is used to get/set rendering state. Instances are ephemeral; store Entity IDs, not instances.

Related components:

  • Use TransformManager to associate a 4x4 transform with an entity

  • Use LightManager to add lights

  • Use RenderableManager to add geometry and materials

See also

expect class RenderableManager

Factory and manager for Renderables, which are entities that can be drawn.

Renderables are bundles of primitives, each with its own geometry and material. All primitives in a renderable share rendering attributes such as shadow casting, skinning, morphing, layer masks, and priority.

Creating renderables:

val entity = entityManager.create()
RenderableManager.Builder(1) // 1 primitive
.boundingBox(Box(-1f, -1f, -1f, 1f, 1f, 1f))
.material(0, materialInstance)
.geometry(0, PrimitiveType.TRIANGLES, vertexBuffer, indexBuffer, 0, 6)
.receiveShadows(true)
.castShadows(true)
.build(engine, entity)

scene.addEntity(entity)

Modifying renderables: To modify an existing renderable, use RenderableManager to get a temporary handle called an Instance. The instance is used to get/set rendering state. Instances are ephemeral; store Entity IDs, not instances.

Related components:

  • Use TransformManager to associate a 4x4 transform with an entity

  • Use LightManager to add lights

  • Use RenderableManager to add geometry and materials

See also

actual class RenderableManager(jsRenderableManager: RenderableManager)

Factory and manager for Renderables, which are entities that can be drawn.

Renderables are bundles of primitives, each with its own geometry and material. All primitives in a renderable share rendering attributes such as shadow casting, skinning, morphing, layer masks, and priority.

Creating renderables:

val entity = entityManager.create()
RenderableManager.Builder(1) // 1 primitive
.boundingBox(Box(-1f, -1f, -1f, 1f, 1f, 1f))
.material(0, materialInstance)
.geometry(0, PrimitiveType.TRIANGLES, vertexBuffer, indexBuffer, 0, 6)
.receiveShadows(true)
.castShadows(true)
.build(engine, entity)

scene.addEntity(entity)

Modifying renderables: To modify an existing renderable, use RenderableManager to get a temporary handle called an Instance. The instance is used to get/set rendering state. Instances are ephemeral; store Entity IDs, not instances.

Related components:

  • Use TransformManager to associate a 4x4 transform with an entity

  • Use LightManager to add lights

  • Use RenderableManager to add geometry and materials

See also

actual class RenderableManager

Factory and manager for Renderables, which are entities that can be drawn.

Renderables are bundles of primitives, each with its own geometry and material. All primitives in a renderable share rendering attributes such as shadow casting, skinning, morphing, layer masks, and priority.

Creating renderables:

val entity = entityManager.create()
RenderableManager.Builder(1) // 1 primitive
.boundingBox(Box(-1f, -1f, -1f, 1f, 1f, 1f))
.material(0, materialInstance)
.geometry(0, PrimitiveType.TRIANGLES, vertexBuffer, indexBuffer, 0, 6)
.receiveShadows(true)
.castShadows(true)
.build(engine, entity)

scene.addEntity(entity)

Modifying renderables: To modify an existing renderable, use RenderableManager to get a temporary handle called an Instance. The instance is used to get/set rendering state. Instances are ephemeral; store Entity IDs, not instances.

Related components:

  • Use TransformManager to associate a 4x4 transform with an entity

  • Use LightManager to add lights

  • Use RenderableManager to add geometry and materials

See also

actual class RenderableManager

Factory and manager for Renderables, which are entities that can be drawn.

Renderables are bundles of primitives, each with its own geometry and material. All primitives in a renderable share rendering attributes such as shadow casting, skinning, morphing, layer masks, and priority.

Creating renderables:

val entity = entityManager.create()
RenderableManager.Builder(1) // 1 primitive
.boundingBox(Box(-1f, -1f, -1f, 1f, 1f, 1f))
.material(0, materialInstance)
.geometry(0, PrimitiveType.TRIANGLES, vertexBuffer, indexBuffer, 0, 6)
.receiveShadows(true)
.castShadows(true)
.build(engine, entity)

scene.addEntity(entity)

Modifying renderables: To modify an existing renderable, use RenderableManager to get a temporary handle called an Instance. The instance is used to get/set rendering state. Instances are ephemeral; store Entity IDs, not instances.

Related components:

  • Use TransformManager to associate a 4x4 transform with an entity

  • Use LightManager to add lights

  • Use RenderableManager to add geometry and materials

See also

Constructors

Link copied to clipboard
constructor(jsRenderableManager: RenderableManager)

Types

Link copied to clipboard
actual class Builder(count: Int)

Adds renderable components to entities using a builder pattern.

expect class Builder(count: Int)

Adds renderable components to entities using a builder pattern.

actual class Builder(count: Int)

Adds renderable components to entities using a builder pattern.

actual class Builder(count: Int)

Adds renderable components to entities using a builder pattern.

actual class Builder(count: Int)

Adds renderable components to entities using a builder pattern.

Link copied to clipboard

Type of geometry for a Renderable.

Type of geometry for a Renderable.

Type of geometry for a Renderable.

Type of geometry for a Renderable.

Type of geometry for a Renderable.

Link copied to clipboard

Primitive topology types.

Primitive topology types.

Primitive topology types.

Primitive topology types.

Primitive topology types.

Properties

Link copied to clipboard
val nativeRenderableManager: RenderableManager

Functions

Link copied to clipboard
actual fun clearMaterialInstanceAt(instance: EntityInstance, primitiveIndex: Int)

Clears the material instance for a primitive (revert to default).

expect fun clearMaterialInstanceAt(instance: EntityInstance, primitiveIndex: Int)

Clears the material instance for a primitive (revert to default).

actual fun clearMaterialInstanceAt(instance: EntityInstance, primitiveIndex: Int)

Clears the material instance for a primitive (revert to default).

actual fun clearMaterialInstanceAt(instance: EntityInstance, primitiveIndex: Int)

Clears the material instance for a primitive (revert to default).

actual fun clearMaterialInstanceAt(instance: EntityInstance, primitiveIndex: Int)

Clears the material instance for a primitive (revert to default).

Link copied to clipboard
actual fun destroy(entity: Entity)

Destroys the renderable component in the given entity.

expect fun destroy(entity: Entity)

Destroys the renderable component in the given entity.

actual fun destroy(entity: Entity)

Destroys the renderable component in the given entity.

actual fun destroy(entity: Entity)

Destroys the renderable component in the given entity.

actual fun destroy(entity: Entity)

Destroys the renderable component in the given entity.

Link copied to clipboard
actual fun getAxisAlignedBoundingBox(instance: EntityInstance, outBox: Box?): Box

Gets the bounding box used for frustum culling.

expect fun getAxisAlignedBoundingBox(instance: EntityInstance, outBox: Box?): Box

Gets the bounding box used for frustum culling.

actual fun getAxisAlignedBoundingBox(instance: EntityInstance, outBox: Box?): Box

Gets the bounding box used for frustum culling.

actual fun getAxisAlignedBoundingBox(instance: EntityInstance, outBox: Box?): Box

Gets the bounding box used for frustum culling.

actual fun getAxisAlignedBoundingBox(instance: EntityInstance, outBox: Box?): Box

Gets the bounding box used for frustum culling.

Link copied to clipboard
actual fun getBlendOrderAt(instance: EntityInstance, primitiveIndex: Int): Int

Gets the drawing order for blended primitives.

expect fun getBlendOrderAt(instance: EntityInstance, primitiveIndex: Int): Int

Gets the drawing order for blended primitives.

actual fun getBlendOrderAt(instance: EntityInstance, primitiveIndex: Int): Int

Gets the drawing order for blended primitives.

actual fun getBlendOrderAt(instance: EntityInstance, primitiveIndex: Int): Int

Gets the drawing order for blended primitives.

actual fun getBlendOrderAt(instance: EntityInstance, primitiveIndex: Int): Int

Gets the drawing order for blended primitives.

Link copied to clipboard
actual fun getChannel(instance: EntityInstance): Int

Get the channel a renderable is associated to.

expect fun getChannel(instance: EntityInstance): Int

Get the channel a renderable is associated to.

actual fun getChannel(instance: EntityInstance): Int

Get the channel a renderable is associated to.

actual fun getChannel(instance: EntityInstance): Int

Get the channel a renderable is associated to.

actual fun getChannel(instance: EntityInstance): Int

Get the channel a renderable is associated to.

Link copied to clipboard
actual fun getFogEnabled(instance: EntityInstance): Boolean

Returns whether large-scale fog is enabled for this renderable.

expect fun getFogEnabled(instance: EntityInstance): Boolean

Returns whether large-scale fog is enabled for this renderable.

actual fun getFogEnabled(instance: EntityInstance): Boolean

Returns whether large-scale fog is enabled for this renderable.

actual fun getFogEnabled(instance: EntityInstance): Boolean

Returns whether large-scale fog is enabled for this renderable.

actual fun getFogEnabled(instance: EntityInstance): Boolean

Returns whether large-scale fog is enabled for this renderable.

Link copied to clipboard
actual fun getInstance(entity: Entity): EntityInstance

Gets a temporary handle that can be used to access the renderable state.

expect fun getInstance(entity: Entity): EntityInstance

Gets a temporary handle that can be used to access the renderable state.

actual fun getInstance(entity: Entity): EntityInstance

Gets a temporary handle that can be used to access the renderable state.

actual fun getInstance(entity: Entity): EntityInstance

Gets a temporary handle that can be used to access the renderable state.

actual fun getInstance(entity: Entity): EntityInstance

Gets a temporary handle that can be used to access the renderable state.

Link copied to clipboard
actual fun getInstanceCount(instance: EntityInstance): Int

Get the number of instances in the given entity.

expect fun getInstanceCount(instance: EntityInstance): Int

Get the number of instances in the given entity.

actual fun getInstanceCount(instance: EntityInstance): Int

Get the number of instances in the given entity.

actual fun getInstanceCount(instance: EntityInstance): Int

Get the number of instances in the given entity.

actual fun getInstanceCount(instance: EntityInstance): Int

Get the number of instances in the given entity.

Link copied to clipboard
actual fun getLightChannel(instance: EntityInstance, channel: Int): Boolean

Returns whether a light channel is enabled on this renderable.

expect fun getLightChannel(instance: EntityInstance, channel: Int): Boolean

Returns whether a light channel is enabled on this renderable.

actual fun getLightChannel(instance: EntityInstance, channel: Int): Boolean

Returns whether a light channel is enabled on this renderable.

actual fun getLightChannel(instance: EntityInstance, channel: Int): Boolean

Returns whether a light channel is enabled on this renderable.

actual fun getLightChannel(instance: EntityInstance, channel: Int): Boolean

Returns whether a light channel is enabled on this renderable.

Link copied to clipboard
actual fun getMaterialInstanceAt(instance: EntityInstance, primitiveIndex: Int): MaterialInstance?

Gets a material instance on a primitive.

expect fun getMaterialInstanceAt(instance: EntityInstance, primitiveIndex: Int): MaterialInstance?

Gets a material instance on a primitive.

actual fun getMaterialInstanceAt(instance: EntityInstance, primitiveIndex: Int): MaterialInstance?

Gets a material instance on a primitive.

actual fun getMaterialInstanceAt(instance: EntityInstance, primitiveIndex: Int): MaterialInstance?

Gets a material instance on a primitive.

actual fun getMaterialInstanceAt(instance: EntityInstance, primitiveIndex: Int): MaterialInstance?

Gets a material instance on a primitive.

Link copied to clipboard
actual fun getMorphTargetCount(instance: EntityInstance): Int

Get the number of morph targets in the given entity.

expect fun getMorphTargetCount(instance: EntityInstance): Int

Get the number of morph targets in the given entity.

actual fun getMorphTargetCount(instance: EntityInstance): Int

Get the number of morph targets in the given entity.

actual fun getMorphTargetCount(instance: EntityInstance): Int

Get the number of morph targets in the given entity.

actual fun getMorphTargetCount(instance: EntityInstance): Int

Get the number of morph targets in the given entity.

Link copied to clipboard
actual fun getPrimitiveCount(instance: EntityInstance): Int

Get the number of primitives in the given entity.

expect fun getPrimitiveCount(instance: EntityInstance): Int

Get the number of primitives in the given entity.

actual fun getPrimitiveCount(instance: EntityInstance): Int

Get the number of primitives in the given entity.

actual fun getPrimitiveCount(instance: EntityInstance): Int

Get the number of primitives in the given entity.

actual fun getPrimitiveCount(instance: EntityInstance): Int

Get the number of primitives in the given entity.

Link copied to clipboard
actual fun getPriority(instance: EntityInstance): Int

Get the coarse-level draw ordering.

expect fun getPriority(instance: EntityInstance): Int

Get the coarse-level draw ordering.

actual fun getPriority(instance: EntityInstance): Int

Get the coarse-level draw ordering.

actual fun getPriority(instance: EntityInstance): Int

Get the coarse-level draw ordering.

actual fun getPriority(instance: EntityInstance): Int

Get the coarse-level draw ordering.

Link copied to clipboard
actual fun hasComponent(entity: Entity): Boolean

Checks if the given entity already has a renderable component.

expect fun hasComponent(entity: Entity): Boolean

Checks if the given entity already has a renderable component.

actual fun hasComponent(entity: Entity): Boolean

Checks if the given entity already has a renderable component.

actual fun hasComponent(entity: Entity): Boolean

Checks if the given entity already has a renderable component.

actual fun hasComponent(entity: Entity): Boolean

Checks if the given entity already has a renderable component.

Link copied to clipboard
actual fun isCullingEnabled(instance: EntityInstance): Boolean

Get whether or not frustum culling is on.

expect fun isCullingEnabled(instance: EntityInstance): Boolean

Get whether or not frustum culling is on.

actual fun isCullingEnabled(instance: EntityInstance): Boolean

Get whether or not frustum culling is on.

actual fun isCullingEnabled(instance: EntityInstance): Boolean

Get whether or not frustum culling is on.

actual fun isCullingEnabled(instance: EntityInstance): Boolean

Get whether or not frustum culling is on.

Link copied to clipboard
actual fun isGlobalBlendOrderEnabledAt(instance: EntityInstance, primitiveIndex: Int): Boolean

Gets whether the blend order is global or local to this Renderable.

expect fun isGlobalBlendOrderEnabledAt(instance: EntityInstance, primitiveIndex: Int): Boolean

Gets whether the blend order is global or local to this Renderable.

actual fun isGlobalBlendOrderEnabledAt(instance: EntityInstance, primitiveIndex: Int): Boolean

Gets whether the blend order is global or local to this Renderable.

actual fun isGlobalBlendOrderEnabledAt(instance: EntityInstance, primitiveIndex: Int): Boolean

Gets whether the blend order is global or local to this Renderable.

actual fun isGlobalBlendOrderEnabledAt(instance: EntityInstance, primitiveIndex: Int): Boolean

Gets whether the blend order is global or local to this Renderable.

Link copied to clipboard

Checks if the renderable can use screen-space contact shadows.

Checks if the renderable can use screen-space contact shadows.

Checks if the renderable can use screen-space contact shadows.

Checks if the renderable can use screen-space contact shadows.

Checks if the renderable can use screen-space contact shadows.

Link copied to clipboard
actual fun isShadowCaster(instance: EntityInstance): Boolean

Checks if the renderable can cast shadows.

expect fun isShadowCaster(instance: EntityInstance): Boolean

Checks if the renderable can cast shadows.

actual fun isShadowCaster(instance: EntityInstance): Boolean

Checks if the renderable can cast shadows.

actual fun isShadowCaster(instance: EntityInstance): Boolean

Checks if the renderable can cast shadows.

actual fun isShadowCaster(instance: EntityInstance): Boolean

Checks if the renderable can cast shadows.

Link copied to clipboard
actual fun isShadowReceiver(instance: EntityInstance): Boolean

Checks if the renderable can receive shadows.

expect fun isShadowReceiver(instance: EntityInstance): Boolean

Checks if the renderable can receive shadows.

actual fun isShadowReceiver(instance: EntityInstance): Boolean

Checks if the renderable can receive shadows.

actual fun isShadowReceiver(instance: EntityInstance): Boolean

Checks if the renderable can receive shadows.

actual fun isShadowReceiver(instance: EntityInstance): Boolean

Checks if the renderable can receive shadows.

Link copied to clipboard
actual fun setAxisAlignedBoundingBox(instance: EntityInstance, box: Box)

Changes the bounding box used for frustum culling. The renderable must not have staticGeometry enabled.

expect fun setAxisAlignedBoundingBox(instance: EntityInstance, box: Box)

Changes the bounding box used for frustum culling. The renderable must not have staticGeometry enabled.

actual fun setAxisAlignedBoundingBox(instance: EntityInstance, box: Box)

Changes the bounding box used for frustum culling. The renderable must not have staticGeometry enabled.

actual fun setAxisAlignedBoundingBox(instance: EntityInstance, box: Box)

Changes the bounding box used for frustum culling. The renderable must not have staticGeometry enabled.

actual fun setAxisAlignedBoundingBox(instance: EntityInstance, box: Box)

Changes the bounding box used for frustum culling. The renderable must not have staticGeometry enabled.

Link copied to clipboard
actual fun setBlendOrderAt(instance: EntityInstance, primitiveIndex: Int, blendOrder: Int)

Sets the drawing order for blended primitives.

expect fun setBlendOrderAt(instance: EntityInstance, primitiveIndex: Int, blendOrder: Int)

Sets the drawing order for blended primitives.

actual fun setBlendOrderAt(instance: EntityInstance, primitiveIndex: Int, blendOrder: Int)

Sets the drawing order for blended primitives.

actual fun setBlendOrderAt(instance: EntityInstance, primitiveIndex: Int, blendOrder: Int)

Sets the drawing order for blended primitives.

actual fun setBlendOrderAt(instance: EntityInstance, primitiveIndex: Int, blendOrder: Int)

Sets the drawing order for blended primitives.

Link copied to clipboard
actual fun setBonesAsMatrices(instance: EntityInstance, matrices: FloatArray, boneCount: Int, offset: Int)

Updates the bone transforms in the range [offset, offset + boneCount). The bones must be pre-allocated using Builder.skinning().

expect fun setBonesAsMatrices(instance: EntityInstance, matrices: FloatArray, boneCount: Int, offset: Int)

Updates the bone transforms in the range [offset, offset + boneCount). The bones must be pre-allocated using Builder.skinning().

actual fun setBonesAsMatrices(instance: EntityInstance, matrices: FloatArray, boneCount: Int, offset: Int)

Updates the bone transforms in the range [offset, offset + boneCount). The bones must be pre-allocated using Builder.skinning().

actual fun setBonesAsMatrices(instance: EntityInstance, matrices: FloatArray, boneCount: Int, offset: Int)

Updates the bone transforms in the range [offset, offset + boneCount). The bones must be pre-allocated using Builder.skinning().

actual fun setBonesAsMatrices(instance: EntityInstance, matrices: FloatArray, boneCount: Int, offset: Int)

Updates the bone transforms in the range [offset, offset + boneCount). The bones must be pre-allocated using Builder.skinning().

Link copied to clipboard
actual fun setBonesAsQuaternions(instance: EntityInstance, quaternions: FloatArray, boneCount: Int, offset: Int)

Updates the bone transforms in the range [offset, offset + boneCount). The bones must be pre-allocated using Builder.skinning().

expect fun setBonesAsQuaternions(instance: EntityInstance, quaternions: FloatArray, boneCount: Int, offset: Int)

Updates the bone transforms in the range [offset, offset + boneCount). The bones must be pre-allocated using Builder.skinning().

actual fun setBonesAsQuaternions(instance: EntityInstance, quaternions: FloatArray, boneCount: Int, offset: Int)

Updates the bone transforms in the range [offset, offset + boneCount). The bones must be pre-allocated using Builder.skinning().

actual fun setBonesAsQuaternions(instance: EntityInstance, quaternions: FloatArray, boneCount: Int, offset: Int)

Updates the bone transforms in the range [offset, offset + boneCount). The bones must be pre-allocated using Builder.skinning().

actual fun setBonesAsQuaternions(instance: EntityInstance, quaternions: FloatArray, boneCount: Int, offset: Int)

Updates the bone transforms in the range [offset, offset + boneCount). The bones must be pre-allocated using Builder.skinning().

Link copied to clipboard
actual fun setCastShadows(instance: EntityInstance, enabled: Boolean)

Changes whether or not the renderable casts shadows.

expect fun setCastShadows(instance: EntityInstance, enabled: Boolean)

Changes whether or not the renderable casts shadows.

actual fun setCastShadows(instance: EntityInstance, enabled: Boolean)

Changes whether or not the renderable casts shadows.

actual fun setCastShadows(instance: EntityInstance, enabled: Boolean)

Changes whether or not the renderable casts shadows.

actual fun setCastShadows(instance: EntityInstance, enabled: Boolean)

Changes whether or not the renderable casts shadows.

Link copied to clipboard
actual fun setChannel(instance: EntityInstance, channel: Int)

Changes the channel a renderable is associated to.

expect fun setChannel(instance: EntityInstance, channel: Int)

Changes the channel a renderable is associated to.

actual fun setChannel(instance: EntityInstance, channel: Int)

Changes the channel a renderable is associated to.

actual fun setChannel(instance: EntityInstance, channel: Int)

Changes the channel a renderable is associated to.

actual fun setChannel(instance: EntityInstance, channel: Int)

Changes the channel a renderable is associated to.

Link copied to clipboard
actual fun setCulling(instance: EntityInstance, enabled: Boolean)

Changes whether or not frustum culling is on.

expect fun setCulling(instance: EntityInstance, enabled: Boolean)

Changes whether or not frustum culling is on.

actual fun setCulling(instance: EntityInstance, enabled: Boolean)

Changes whether or not frustum culling is on.

actual fun setCulling(instance: EntityInstance, enabled: Boolean)

Changes whether or not frustum culling is on.

actual fun setCulling(instance: EntityInstance, enabled: Boolean)

Changes whether or not frustum culling is on.

Link copied to clipboard
actual fun setFogEnabled(instance: EntityInstance, enabled: Boolean)

Changes whether or not the large-scale fog is applied to this renderable

expect fun setFogEnabled(instance: EntityInstance, enabled: Boolean)

Changes whether or not the large-scale fog is applied to this renderable

actual fun setFogEnabled(instance: EntityInstance, enabled: Boolean)

Changes whether or not the large-scale fog is applied to this renderable

actual fun setFogEnabled(instance: EntityInstance, enabled: Boolean)

Changes whether or not the large-scale fog is applied to this renderable

actual fun setFogEnabled(instance: EntityInstance, enabled: Boolean)

Changes whether or not the large-scale fog is applied to this renderable

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

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

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

Changes the geometry for a primitive.

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

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

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

Changes the geometry for a primitive.

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

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

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

Changes the geometry for a primitive.

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

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

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

Changes the geometry for a primitive.

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

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

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

Changes the geometry for a primitive.

Link copied to clipboard
actual fun setGlobalBlendOrderEnabledAt(instance: EntityInstance, primitiveIndex: Int, enabled: Boolean)

Sets whether the blend order is global or local to this Renderable.

expect fun setGlobalBlendOrderEnabledAt(instance: EntityInstance, primitiveIndex: Int, enabled: Boolean)

Sets whether the blend order is global or local to this Renderable.

actual fun setGlobalBlendOrderEnabledAt(instance: EntityInstance, primitiveIndex: Int, enabled: Boolean)

Sets whether the blend order is global or local to this Renderable.

actual fun setGlobalBlendOrderEnabledAt(instance: EntityInstance, primitiveIndex: Int, enabled: Boolean)

Sets whether the blend order is global or local to this Renderable.

actual fun setGlobalBlendOrderEnabledAt(instance: EntityInstance, primitiveIndex: Int, enabled: Boolean)

Sets whether the blend order is global or local to this Renderable.

Link copied to clipboard
actual fun setLayerMask(instance: EntityInstance, select: Int, value: Int)

Changes the visibility bits.

expect fun setLayerMask(instance: EntityInstance, select: Int, value: Int)

Changes the visibility bits.

actual fun setLayerMask(instance: EntityInstance, select: Int, value: Int)

Changes the visibility bits.

actual fun setLayerMask(instance: EntityInstance, select: Int, value: Int)

Changes the visibility bits.

actual fun setLayerMask(instance: EntityInstance, select: Int, value: Int)

Changes the visibility bits.

Link copied to clipboard
actual fun setLightChannel(instance: EntityInstance, channel: Int, enable: Boolean)

Enables or disables a light channel for this renderable. Light channel 0 is enabled by default.

expect fun setLightChannel(instance: EntityInstance, channel: Int, enable: Boolean)

Enables or disables a light channel for this renderable. Light channel 0 is enabled by default.

actual fun setLightChannel(instance: EntityInstance, channel: Int, enable: Boolean)

Enables or disables a light channel for this renderable. Light channel 0 is enabled by default.

actual fun setLightChannel(instance: EntityInstance, channel: Int, enable: Boolean)

Enables or disables a light channel for this renderable. Light channel 0 is enabled by default.

actual fun setLightChannel(instance: EntityInstance, channel: Int, enable: Boolean)

Enables or disables a light channel for this renderable. Light channel 0 is enabled by default.

Link copied to clipboard
actual fun setMaterialInstanceAt(instance: EntityInstance, primitiveIndex: Int, materialInstance: MaterialInstance)

Changes a material instance on a primitive.

expect fun setMaterialInstanceAt(instance: EntityInstance, primitiveIndex: Int, materialInstance: MaterialInstance)

Changes a material instance on a primitive.

actual fun setMaterialInstanceAt(instance: EntityInstance, primitiveIndex: Int, materialInstance: MaterialInstance)

Changes a material instance on a primitive.

actual fun setMaterialInstanceAt(instance: EntityInstance, primitiveIndex: Int, materialInstance: MaterialInstance)

Changes a material instance on a primitive.

actual fun setMaterialInstanceAt(instance: EntityInstance, primitiveIndex: Int, materialInstance: MaterialInstance)

Changes a material instance on a primitive.

Link copied to clipboard
actual fun setMorphTargetBufferOffsetAt(instance: EntityInstance, level: Int, primitiveIndex: Int, offset: Int)

Associates a MorphTargetBuffer to the given primitive.

expect fun setMorphTargetBufferOffsetAt(instance: EntityInstance, level: Int, primitiveIndex: Int, offset: Int)

Associates a MorphTargetBuffer to the given primitive.

actual fun setMorphTargetBufferOffsetAt(instance: EntityInstance, level: Int, primitiveIndex: Int, offset: Int)

Associates a MorphTargetBuffer to the given primitive.

actual fun setMorphTargetBufferOffsetAt(instance: EntityInstance, level: Int, primitiveIndex: Int, offset: Int)

Associates a MorphTargetBuffer to the given primitive.

actual fun setMorphTargetBufferOffsetAt(instance: EntityInstance, level: Int, primitiveIndex: Int, offset: Int)

Associates a MorphTargetBuffer to the given primitive.

Link copied to clipboard
actual fun setMorphWeights(instance: EntityInstance, weights: FloatArray, offset: Int)

Updates the vertex morphing weights on a renderable, all zeroes by default.

expect fun setMorphWeights(instance: EntityInstance, weights: FloatArray, offset: Int = 0)

Updates the vertex morphing weights on a renderable, all zeroes by default.

actual fun setMorphWeights(instance: EntityInstance, weights: FloatArray, offset: Int)

Updates the vertex morphing weights on a renderable, all zeroes by default.

actual fun setMorphWeights(instance: EntityInstance, weights: FloatArray, offset: Int)

Updates the vertex morphing weights on a renderable, all zeroes by default.

actual fun setMorphWeights(instance: EntityInstance, weights: FloatArray, offset: Int)

Updates the vertex morphing weights on a renderable, all zeroes by default.

Link copied to clipboard
actual fun setPriority(instance: EntityInstance, priority: Int)

Changes the coarse-level draw ordering.

expect fun setPriority(instance: EntityInstance, priority: Int)

Changes the coarse-level draw ordering.

actual fun setPriority(instance: EntityInstance, priority: Int)

Changes the coarse-level draw ordering.

actual fun setPriority(instance: EntityInstance, priority: Int)

Changes the coarse-level draw ordering.

actual fun setPriority(instance: EntityInstance, priority: Int)

Changes the coarse-level draw ordering.

Link copied to clipboard
actual fun setReceiveShadows(instance: EntityInstance, enabled: Boolean)

Changes whether or not the renderable can receive shadows.

expect fun setReceiveShadows(instance: EntityInstance, enabled: Boolean)

Changes whether or not the renderable can receive shadows.

actual fun setReceiveShadows(instance: EntityInstance, enabled: Boolean)

Changes whether or not the renderable can receive shadows.

actual fun setReceiveShadows(instance: EntityInstance, enabled: Boolean)

Changes whether or not the renderable can receive shadows.

actual fun setReceiveShadows(instance: EntityInstance, enabled: Boolean)

Changes whether or not the renderable can receive shadows.

Link copied to clipboard
actual fun setScreenSpaceContactShadows(instance: EntityInstance, enabled: Boolean)

Changes whether or not the renderable can use screen-space contact shadows.

expect fun setScreenSpaceContactShadows(instance: EntityInstance, enabled: Boolean)

Changes whether or not the renderable can use screen-space contact shadows.

actual fun setScreenSpaceContactShadows(instance: EntityInstance, enabled: Boolean)

Changes whether or not the renderable can use screen-space contact shadows.

actual fun setScreenSpaceContactShadows(instance: EntityInstance, enabled: Boolean)

Changes whether or not the renderable can use screen-space contact shadows.

actual fun setScreenSpaceContactShadows(instance: EntityInstance, enabled: Boolean)

Changes whether or not the renderable can use screen-space contact shadows.

Link copied to clipboard
actual fun setSkinningBuffer(instance: EntityInstance, skinningBuffer: SkinningBuffer, count: Int, offset: Int)

Associates a region of a SkinningBuffer to a renderable instance.

expect fun setSkinningBuffer(instance: EntityInstance, skinningBuffer: SkinningBuffer, count: Int, offset: Int)

Associates a region of a SkinningBuffer to a renderable instance.

actual fun setSkinningBuffer(instance: EntityInstance, skinningBuffer: SkinningBuffer, count: Int, offset: Int)

Associates a region of a SkinningBuffer to a renderable instance.

actual fun setSkinningBuffer(instance: EntityInstance, skinningBuffer: SkinningBuffer, count: Int, offset: Int)

Associates a region of a SkinningBuffer to a renderable instance.

actual fun setSkinningBuffer(instance: EntityInstance, skinningBuffer: SkinningBuffer, count: Int, offset: Int)

Associates a region of a SkinningBuffer to a renderable instance.