RenderableComponent

Properties

Link copied to clipboard

Changes the bounding box used for frustum culling.

Link copied to clipboard
open val enabledAttributes: List<MutableSet<VertexBuffer.VertexAttribute>>

Retrieves the set of enabled attribute slots in the given primitive's VertexBuffer.

Link copied to clipboard
abstract val engine: Engine
Link copied to clipboard
abstract val entity: Entity
Link copied to clipboard

Changes whether or not the renderable casts shadows.

Link copied to clipboard

Changes whether or not the renderable can receive shadows.

Link copied to clipboard
open var materialInstance: MaterialInstance

Changes the material instance binding for the first primitive.

Link copied to clipboard
open var materialInstances: List<MaterialInstance>

Changes the material instance binding for the given primitive.

Link copied to clipboard

Gets the morph target count on a renderable.

Link copied to clipboard
@get:IntRange(from = 0)
open val primitiveCount: Int

Gets the immutable number of primitives in the given renderable.

Link copied to clipboard
Link copied to clipboard
open val renderableManager: RenderableManager

Functions

Link copied to clipboard
open fun getLightChannel(@IntRange(from = 0, to = 7) channel: Int): Boolean

Returns whether a light channel is enabled on a specified renderable

Link copied to clipboard
open fun getMaterialInstanceAt(@IntRange(from = 0) primitiveIndex: Int): MaterialInstance

Creates a MaterialInstance Java wrapper object for a particular material instance.

Link copied to clipboard
open operator fun List<MaterialInstance>.set(@IntRange(from = 0) primitiveIndex: Int, materialInstance: MaterialInstance)
Link copied to clipboard
open fun setBlendOrder(@IntRange(from = 0, to = 65535) blendOrder: Int)

Changes the drawing order for blended primitives.

Link copied to clipboard
open fun setBlendOrderAt(@IntRange(from = 0) primitiveIndex: Int, @IntRange(from = 0, to = 65535) blendOrder: Int)

Changes the drawing order for blended primitives. The drawing order is either global or local (default) to this Renderable.

Link copied to clipboard
open fun setBonesAsMatrices(matrices: Buffer, @IntRange(from = 0, to = 255) boneCount: Int, @IntRange(from = 0) offset: Int)

Sets the transforms associated with each bone of a Renderable.

Link copied to clipboard
open fun setBonesAsQuaternions(quaternions: Buffer, @IntRange(from = 0, to = 255) boneCount: Int, @IntRange(from = 0) offset: Int)

Sets the transforms associated with each bone of a Renderable

Link copied to clipboard
open fun setCulling(enabled: Boolean)

Changes whether or not frustum culling is on.

Link copied to clipboard
open fun setGeometry(geometry: Geometry)

Changes the geometry for the given renderable instance.

Link copied to clipboard
open fun setGeometryAt(@IntRange(from = 0) primitiveIndex: Int, type: RenderableManager.PrimitiveType, vertices: VertexBuffer, indices: IndexBuffer, @IntRange(from = 0) offset: Int = 0, @IntRange(from = 0) count: Int = indices.indexCount)

Changes the geometry for the given primitive.

Link copied to clipboard

Changes whether the blend order is global or local to this Renderable (by default)

Link copied to clipboard
open fun setGlobalBlendOrderEnabledAt(@IntRange(from = 0) primitiveIndex: Int, enabled: Boolean)

Changes whether the blend order is global or local to this Renderable (by default)

Link copied to clipboard
open fun setLayerMask(@IntRange(from = 0, to = 255) select: Int, @IntRange(from = 0, to = 255) value: Int)

Changes the visibility bits.

Link copied to clipboard
open fun setLayerVisible(visible: Boolean)

Changes the visibility.

Link copied to clipboard
open fun setLightChannel(@IntRange(from = 0, to = 7) channel: Int, enable: Boolean)

Enables or disables a light channel.

Link copied to clipboard
open fun setMaterialInstanceAt(@IntRange(from = 0) primitiveIndex: Int, materialInstance: MaterialInstance)

Changes the material instance binding for the given primitive.

Link copied to clipboard
open fun setMaterialInstances(materialInstance: MaterialInstance)

Changes the material instance binding for all primitives.

Link copied to clipboard
open fun setMorphTargetBufferAt(@IntRange(from = 0) level: Int, @IntRange(from = 0) primitiveIndex: Int, morphTargetBuffer: MorphTargetBuffer)

Utility method to change morph target buffer for the given primitive.

open fun setMorphTargetBufferAt(@IntRange(from = 0) level: Int, @IntRange(from = 0) primitiveIndex: Int, morphTargetBuffer: MorphTargetBuffer, @IntRange(from = 0) offset: Int, @IntRange(from = 0) count: Int)

Changes the morph target buffer for the given primitive.

Link copied to clipboard
open fun setMorphWeights(weights: FloatArray, @IntRange(from = 0) offset: Int = weights.size)

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

Link copied to clipboard
open fun setPriority(@IntRange(from = 0, to = 7) priority: Int)

Changes the coarse-level draw ordering.

Link copied to clipboard

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

Link copied to clipboard
open fun setSkinningBuffer(skinningBuffer: SkinningBuffer, count: Int, offset: Int)

Associates a SkinningBuffer to a renderable instance.