SurfaceOrientation

The surface orientation helper can be used to populate Filament-style TANGENTS buffers.

Constructors

Link copied to clipboard
constructor(nativeHandle: NativePointer)

Types

Link copied to clipboard
class Builder

The Builder is used to construct an immutable surface orientation helper.

Properties

Link copied to clipboard

The native object, for interop with code calling the Fila* C API directly. Read-only: this wrapper owns it.

Link copied to clipboard

The number of vertices for which quaternions were generated.

Functions

Link copied to clipboard
open override fun close()

Same as destroy; lets this be used with use { } and try-with-resources.

Link copied to clipboard
fun destroy()

Destroys this SurfaceOrientation.

Link copied to clipboard
fun getHalfQuats(out: ShortArray, quatCount: Int, stride: Int = 0)

getQuats as half floats (quath).

Link copied to clipboard
fun getQuats(out: FloatArray, quatCount: Int, stride: Int = 0)

Writes quatCount quaternions (4 floats each) to out; normally quatCount is the vertex count.

fun getQuats(out: ShortArray, quatCount: Int, stride: Int = 0)

getQuats as normalized shorts (short4).