UniformsRef

class UniformsRef(val block: UniformBlock, var buffer: Buffer, var index: Int)

Constructors

Link copied to clipboard
constructor(block: UniformBlock, size: Int = 1, index: Int = 0)
constructor(block: UniformBlock, buffer: Buffer, index: Int)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var index: Int

Functions

Link copied to clipboard
fun bufferSetFloat1(index: Int, v: Float)
Link copied to clipboard
fun bufferSetFloat16(index: Int, value: Matrix4, indices: IntArray = Matrix4.INDICES_BY_COLUMNS_4x4)
Link copied to clipboard
fun bufferSetFloat2(index: Int, v: Vector2F)
fun bufferSetFloat2(index: Int, x: Float, y: Float)
Link copied to clipboard
fun bufferSetFloat3(index: Int, v: Vector3F)
fun bufferSetFloat3(index: Int, x: Float, y: Float, z: Float)
Link copied to clipboard
fun bufferSetFloat4(index: Int, v: Vector4F)
fun bufferSetFloat4(index: Int, x: Float, y: Float, z: Float, w: Float)
Link copied to clipboard
fun bufferSetFloatN(index: Int, floats: FloatArray, size: Int, offset: Int = 0)
Link copied to clipboard
fun bufferSetFloatNIndexed(index: Int, indices: IntArray, value: FloatArray, max: Int = indices.size)
inline fun bufferSetFloatNIndexed(index: Int, indices: IntArray, max: Int = indices.size, value: (Int) -> Float)
Link copied to clipboard
Link copied to clipboard
operator fun get(uniform: TypedUniform<Vector2F>): Vector2F
operator fun get(uniform: TypedUniform<Vector3F>): Vector3F
operator fun get(uniform: TypedUniform<Vector4F>): Vector4F
operator fun get(uniform: TypedUniform<Float>): Float
operator fun get(uniform: TypedUniform<Int>): Int
Link copied to clipboard
operator fun set(uniform: TypedUniform<Matrix4>, value: Matrix4)
operator fun set(uniform: TypedUniform<Vector2F>, value: Size)
operator fun set(uniform: TypedUniform<Vector2F>, value: Point)
operator fun set(uniform: TypedUniform<Vector2F>, value: Vector2F)
operator fun set(uniform: TypedUniform<Vector4F>, value: ColorAdd)
operator fun set(uniform: TypedUniform<Vector4F>, value: RGBA)
operator fun set(uniform: TypedUniform<Vector4F>, value: RGBAPremultiplied)
operator fun set(uniform: TypedUniform<Vector4F>, value: RectCorners)
operator fun set(uniform: TypedUniform<Vector4F>, value: Vector4F)
operator fun set(uniform: TypedUniform<Array<Matrix4>>, value: Array<Matrix4>)
operator fun set(uniform: TypedUniform<Array<Vector4F>>, value: Array<Vector4F>)
operator fun set(uniform: TypedUniform<Float>, value: Ratio)
operator fun set(uniform: TypedUniform<Float>, value: Boolean)
operator fun set(uniform: TypedUniform<Float>, value: Double)
operator fun set(uniform: TypedUniform<Float>, value: Float)
operator fun set(uniform: TypedUniform<Int>, value: Int)
fun set(uniform: TypedUniform<Matrix4>, value: FloatArray, indices: IntArray)
operator fun set(uniform: TypedUniform<Vector2F>, x: Float, y: Float)
fun set(uniform: TypedUniform<Matrix4>, value: Matrix4, indices: IntArray, max: Int = indices.size)
fun set(uniform: TypedUniform<Vector4F>, x: Float, y: Float, z: Float, w: Float)