Package-level declarations

Functions

Link copied to clipboard
fun RenderableManager.Builder.build(engine: Engine): Int
fun LightManager.Builder.build(engine: Engine, entity: Entity = EntityManager.get().create())
Link copied to clipboard
fun LightManager.Builder.color(linearColor: Color): LightManager.Builder

Sets the initial color of a light.

Link copied to clipboard
fun LightManager.Builder.direction(direction: Direction): LightManager.Builder

The initial direction of a light in world space.

Link copied to clipboard
fun TransformManager.getAllChildren(transformInstance: Int): List<Int>

Gets a flat list of all children within the hierarchy for a transform component.

Link copied to clipboard
fun TransformManager.getChildren(transformInstance: Int): List<Int>

Gets a list of children for a transform component.

Link copied to clipboard
fun LightManager.getDirection(instance: EntityInstance): Direction

The light's direction in world space

Link copied to clipboard
fun TransformManager.getParentOrNull(transformInstance: Int): Int?

Returns the actual parent entity of an EntityInstance originally defined by TransformManager.setParent.

Link copied to clipboard
fun LightManager.getPosition(instance: EntityInstance): Position

The light's position in world space.

Link copied to clipboard
fun LightManager.getQuaternion(instance: EntityInstance): Quaternion
Link copied to clipboard
fun TransformManager.getTransform(transformInstance: Int): Mat4

Returns the local transform of a transform component.

Link copied to clipboard
fun TransformManager.getWorldTransform(transformInstance: Int): Mat4

Returns the world transform of a transform component.

Link copied to clipboard
fun RenderableManager.Builder.materials(materialInstances: List<MaterialInstance?>)
Link copied to clipboard
fun LightManager.Builder.position(position: Position): LightManager.Builder

The initial position of the light in world space.

Link copied to clipboard
fun RenderableManager.safeDestroy(entity: Entity): Result<Unit>
Link copied to clipboard
fun LightManager.setDirection(instance: EntityInstance, direction: Direction)
Link copied to clipboard
fun TransformManager.setParent(transformInstance: Int, newParent: Int?)

Re-parents an entity to a new one.

Link copied to clipboard
fun LightManager.setPosition(instance: EntityInstance, position: Position)

The light's position in world space.

Link copied to clipboard
fun LightManager.setQuaternion(instance: EntityInstance, quaternion: Quaternion)
Link copied to clipboard
fun TransformManager.setTransform(transformInstance: Int, localTransform: Transform)

Sets a local transform of a transform component.