Package graphics.glimpse.buffers

Buffers of vertex attributes and vertex array indices.

Buffers of vertex attributes and vertex array indices.

Buffers of vertex attributes and vertex array indices.

Types

Link copied to clipboard
interface Buffer : GlimpseDisposable

A wrapper for a vertex data buffer.

Link copied to clipboard
enum BufferType : Enum<BufferType>

Buffer type.

Link copied to clipboard
enum BufferUsage : Enum<BufferUsage>

Buffer usage strategy.

Link copied to clipboard
actual class FloatBufferData

Data to be stored in a buffer of floating point numbers.

expect class FloatBufferData

Data to be stored in a buffer of floating point numbers.

actual class FloatBufferData

Data to be stored in a buffer of floating point numbers.

Link copied to clipboard
actual class IntBufferData

Data to be stored in a buffer of integer numbers.

expect class IntBufferData

Data to be stored in a buffer of integer numbers.

actual class IntBufferData

Data to be stored in a buffer of integer numbers.

Functions

Link copied to clipboard
fun floatBufferDataOf(vararg elements: Float): FloatBufferData

Returns floating point buffer data containing the the specified elements.

Link copied to clipboard
fun intBufferDataOf(vararg elements: Int): IntBufferData

Returns integer buffer data containing the the specified elements.

Link copied to clipboard
fun FloatArray.toFloatBufferData(): FloatBufferData

Returns floating point buffer data containing all of the elements of this array.

fun Collection<Float>.toFloatBufferData(): FloatBufferData

Returns floating point buffer data containing all of the elements of this collection.

Link copied to clipboard
fun IntArray.toIntBufferData(): IntBufferData

Returns integer buffer data containing all of the elements of this array.

fun Collection<Int>.toIntBufferData(): IntBufferData

Returns integer buffer data containing all of the elements of this collection.