normals

actual fun normals(buffer: FloatArray, stride: Int): SurfaceOrientation.Builder

Specifies the vertex normals. Stride is the byte offset between consecutive normals.

Return

This Builder instance for method chaining.

Parameters

buffer

An array of normal vectors, each with 3 floats.

stride

Byte offset between consecutive normals. 0 means tightly packed.

expect fun normals(buffer: FloatArray, stride: Int = 0): SurfaceOrientation.Builder

Specifies the vertex normals. Stride is the byte offset between consecutive normals.

Return

This Builder instance for method chaining.

Parameters

buffer

An array of normal vectors, each with 3 floats.

stride

Byte offset between consecutive normals. 0 means tightly packed.

actual fun normals(buffer: FloatArray, stride: Int): SurfaceOrientation.Builder

Specifies the vertex normals. Stride is the byte offset between consecutive normals.

Return

This Builder instance for method chaining.

Parameters

buffer

An array of normal vectors, each with 3 floats.

stride

Byte offset between consecutive normals. 0 means tightly packed.

actual fun normals(buffer: FloatArray, stride: Int): SurfaceOrientation.Builder

Specifies the vertex normals. Stride is the byte offset between consecutive normals.

Return

This Builder instance for method chaining.

Parameters

buffer

An array of normal vectors, each with 3 floats.

stride

Byte offset between consecutive normals. 0 means tightly packed.

actual fun normals(buffer: FloatArray, stride: Int): SurfaceOrientation.Builder

Specifies the vertex normals. Stride is the byte offset between consecutive normals.

Return

This Builder instance for method chaining.

Parameters

buffer

An array of normal vectors, each with 3 floats.

stride

Byte offset between consecutive normals. 0 means tightly packed.