Package-level declarations

Types

Link copied to clipboard
object FileLoader
Link copied to clipboard
object OpenGL

Convenience class to perform common GL operations.

Link copied to clipboard

Displays the Camera stream using Filament.

Properties

Link copied to clipboard

Retrieves the camera's culling matrix. The culling matrix is the same as the projection matrix, except the far plane is finite.

Link copied to clipboard
val Camera.ev100: Float

Computes the camera's EV100 from exposure settings.

Link copied to clipboard
val Camera.exposureFactor: Float

Computes the exposure normalization factor from the camera's EV100.

Link copied to clipboard

Retrieves the camera forward unit vector in world space, that is a unit vector that points in the direction the camera is looking at.

Link copied to clipboard
val Camera.illuminance: Float
Link copied to clipboard

Retrieves the camera left unit vector in world space, that is a unit vector that points to the left of the camera.

Link copied to clipboard
val Camera.luminance: Float
Link copied to clipboard

The camera's model matrix.

Link copied to clipboard

Retrieves the camera's projection matrix. The projection matrix used for rendering always has its far plane set to infinity. This is why it may differ from the matrix set through setProjection() or setLensProjection().

Link copied to clipboard
val Camera.scaling: Float4

Returns the scaling amount used to scale the projection matrix.

Link copied to clipboard
val Viewport.size: Float2
Link copied to clipboard

Retrieves the camera up unit vector in world space, that is a unit vector that points up with respect to the camera.

Link copied to clipboard

Retrieves the camera's view matrix. The view matrix is the inverse of the model matrix.

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Long.fps(other: Long?): Double
Link copied to clipboard

Retrieve a android resource uri from a res id.

Link copied to clipboard
fun Camera.illuminance(ev100: Float): Float
Link copied to clipboard
fun Long.interval(other: Long?): Duration

The duration between Long nanoseconds and the last one

Link copied to clipboard
Link copied to clipboard
suspend fun Context.loadFileBuffer(fileLocation: String): ByteBuffer?
Link copied to clipboard
fun Camera.lookAt(eye: Position, center: Position, up: Direction)

Sets the camera's model matrix.

Link copied to clipboard
fun Camera.luminance(ev100: Float): Float
Link copied to clipboard
fun View.motionEventToRay(motionEvent: MotionEvent): Ray

Calculates a ray in world space going from the near-plane of the camera and going through a point in screen space.

Link copied to clipboard
fun View.motionEventToWorld(motionEvent: MotionEvent): Position

Get a world space position from a screen space position

Link copied to clipboard
fun View.pick(xPx: Float, yPx: Float, handler: Any = Looper.getMainLooper(), onCompleted: (Entity, depth: Float, fragCoords: Float3) -> Unit)

Creates a picking query. Multiple queries can be created (e.g.: multi-touch).

Link copied to clipboard
fun View.pickNode(motionEvent: MotionEvent, nodes: List<Node>, handler: Any = Looper.getMainLooper(), onCompleted: (node: Node?, depth: Float, fragCoords: Float3) -> Unit)
fun View.pickNode(viewPosition: Float2, nodes: List<Node>, handler: Any = Looper.getMainLooper(), onCompleted: (node: Node?, depth: Float, fragCoords: Float3) -> Unit)
fun View.pickNode(xPx: Float, yPx: Float, nodes: List<Node>, handler: Any = Looper.getMainLooper(), onCompleted: (node: Node?, depth: Float, fragCoords: Float3) -> Unit)

Creates a picking query. Multiple queries can be created (e.g.: multi-touch).

Link copied to clipboard
fun View.screenToRay(xPx: Float, yPx: Float): Ray

Calculates a ray in world space going from the near-plane of the camera and through a point in view space.

Link copied to clipboard
fun View.screenToWorld(xPx: Float, yPx: Float, z: Float = 1.0f): Position

Get a world space position from a screen space position

Link copied to clipboard
fun Camera.setCustomProjection(inProjection: Transform, near: Double = getNear().toDouble(), far: Double = cullingFar.toDouble(), inProjectionForCulling: Transform = inProjection)

Sets a custom projection matrix.

Link copied to clipboard
fun Activity.setKeepScreenOn(keepScreenOn: Boolean = true)
Link copied to clipboard
fun Camera.setScaling(scaling: Float2)

Sets an additional matrix that scales the projection matrix.

Link copied to clipboard
Link copied to clipboard
fun Camera.viewToRay(viewPosition: Float2): Ray

Calculates a ray in world space going from the near-plane of the camera and through a point in view space.

Link copied to clipboard
fun Camera.viewToWorld(viewPosition: Float2, z: Float = 1.0f): Position

Get a world space position from a view space position.

Link copied to clipboard
fun View.worldToScreen(worldPosition: Position): Float2

Get a screen space position from a world position.

Link copied to clipboard
fun Camera.worldToView(worldPosition: Position): Float2

Get a view space position from a world position.