glUniform

actual fun glUniform(location: Int, value: Boolean)

Sets value of boolean uniform variable at a given location for current program.

A boolean value is converted to an integer value of GL_TRUE or GL_FALSE.

Since

v1.1.0


actual fun glUniform(location: Int, value: Int)

Sets value of integer uniform variable at a given location for current program.


actual fun glUniform(location: Int, value: Float)

Sets value of floating point uniform variable at a given location for current program.


@JvmName(name = "glUniform2i")
actual fun glUniform(location: Int, value: Vec2<Int>)

Sets value of 2D vector uniform variable at a given location for current program.

Since

v2.0.0


@JvmName(name = "glUniform2f")
actual fun glUniform(location: Int, value: Vec2<Float>)

Sets value of 2D vector uniform variable at a given location for current program.


@JvmName(name = "glUniform3i")
actual fun glUniform(location: Int, value: Vec3<Int>)

Sets value of 3D vector uniform variable at a given location for current program.

Since

v2.0.0


@JvmName(name = "glUniform3f")
actual fun glUniform(location: Int, value: Vec3<Float>)

Sets value of 3D vector uniform variable at a given location for current program.


@JvmName(name = "glUniform4i")
actual fun glUniform(location: Int, value: Vec4<Int>)

Sets value of 4D vector uniform variable at a given location for current program.

Since

v2.0.0


@JvmName(name = "glUniform4f")
actual fun glUniform(location: Int, value: Vec4<Float>)

Sets value of 4D vector uniform variable at a given location for current program.


actual fun glUniform(location: Int, vararg values: Boolean)

Sets values of boolean array uniform variable at a given location for current program.

A boolean value is converted to an integer value of GL_TRUE or GL_FALSE.

Since

v2.0.0


actual fun glUniform(location: Int, vararg values: Int)

Sets values of integer array uniform variable at a given location for current program.


actual fun glUniform(location: Int, vararg values: Float)

Sets values of floating point array uniform variable at a given location for current program.


@JvmName(name = "glUniform2iv")
actual fun glUniform(location: Int, vararg values: Vec2<Int>)

Sets values of 2D vector array uniform variable at a given location for current program.

Since

v2.0.0


@JvmName(name = "glUniform2fv")
actual fun glUniform(location: Int, vararg values: Vec2<Float>)

Sets values of 2D vector array uniform variable at a given location for current program.


@JvmName(name = "glUniform3iv")
actual fun glUniform(location: Int, vararg values: Vec3<Int>)

Sets values of 3D vector array uniform variable at a given location for current program.

Since

v2.0.0


@JvmName(name = "glUniform3fv")
actual fun glUniform(location: Int, vararg values: Vec3<Float>)

Sets values of 3D vector array uniform variable at a given location for current program.


@JvmName(name = "glUniform4iv")
actual fun glUniform(location: Int, vararg values: Vec4<Int>)

Sets values of 4D vector array uniform variable at a given location for current program.

Since

v2.0.0


@JvmName(name = "glUniform4fv")
actual fun glUniform(location: Int, vararg values: Vec4<Float>)

Sets values of 4D vector array uniform variable at a given location for current program.


actual fun glUniform(location: Int, vararg values: Mat2<Float>, transpose: Boolean)

Sets values of 2×2 matrix array uniform variable at a given location for current program.

Optionally, if the transpose flag is set to true, transpose matrices will be set instead.


actual fun glUniform(location: Int, vararg values: Mat3<Float>, transpose: Boolean)

Sets values of 3×3 matrix array uniform variable at a given location for current program.

Optionally, if the transpose flag is set to true, transpose matrices will be set instead.


actual fun glUniform(location: Int, vararg values: Mat4<Float>, transpose: Boolean)

Sets values of 4×4 matrix array uniform variable at a given location for current program.

Optionally, if the transpose flag is set to true, transpose matrices will be set instead.


actual fun glUniform(location: Int, buffer: IntUniformBuffer)

Sets integer buffer uniform variable at a given location for current program.

Since

v2.0.0


actual fun glUniform(location: Int, buffer: FloatUniformBuffer)

Sets floating point buffer uniform variable at a given location for current program.

Since

v2.0.0

expect fun glUniform(location: Int, value: Boolean)

Sets value of boolean uniform variable at a given location for current program.

A boolean value is converted to an integer value of GL_TRUE or GL_FALSE.

Since

v1.1.0


expect fun glUniform(location: Int, value: Int)

Sets value of integer uniform variable at a given location for current program.


expect fun glUniform(location: Int, value: Float)

Sets value of floating point uniform variable at a given location for current program.


expect fun glUniform(location: Int, value: Vec2<Int>)

Sets value of 2D vector uniform variable at a given location for current program.

Since

v2.0.0


expect fun glUniform(location: Int, value: Vec2<Float>)

Sets value of 2D vector uniform variable at a given location for current program.


expect fun glUniform(location: Int, value: Vec3<Int>)

Sets value of 3D vector uniform variable at a given location for current program.

Since

v2.0.0


expect fun glUniform(location: Int, value: Vec3<Float>)

Sets value of 3D vector uniform variable at a given location for current program.


expect fun glUniform(location: Int, value: Vec4<Int>)

Sets value of 4D vector uniform variable at a given location for current program.

Since

v2.0.0


expect fun glUniform(location: Int, value: Vec4<Float>)

Sets value of 4D vector uniform variable at a given location for current program.


expect fun glUniform(location: Int, vararg values: Boolean)

Sets values of boolean array uniform variable at a given location for current program.

A boolean value is converted to an integer value of GL_TRUE or GL_FALSE.

Since

v2.0.0


expect fun glUniform(location: Int, vararg values: Int)

Sets values of integer array uniform variable at a given location for current program.


expect fun glUniform(location: Int, vararg values: Float)

Sets values of floating point array uniform variable at a given location for current program.


expect fun glUniform(location: Int, vararg values: Vec2<Int>)

Sets values of 2D vector array uniform variable at a given location for current program.

Since

v2.0.0


expect fun glUniform(location: Int, vararg values: Vec2<Float>)

Sets values of 2D vector array uniform variable at a given location for current program.


expect fun glUniform(location: Int, vararg values: Vec3<Int>)

Sets values of 3D vector array uniform variable at a given location for current program.

Since

v2.0.0


expect fun glUniform(location: Int, vararg values: Vec3<Float>)

Sets values of 3D vector array uniform variable at a given location for current program.


expect fun glUniform(location: Int, vararg values: Vec4<Int>)

Sets values of 4D vector array uniform variable at a given location for current program.

Since

v2.0.0


expect fun glUniform(location: Int, vararg values: Vec4<Float>)

Sets values of 4D vector array uniform variable at a given location for current program.


expect fun glUniform(location: Int, vararg values: Mat2<Float>, transpose: Boolean = false)

Sets values of 2×2 matrix array uniform variable at a given location for current program.

Optionally, if the transpose flag is set to true, transpose matrices will be set instead.


expect fun glUniform(location: Int, vararg values: Mat3<Float>, transpose: Boolean = false)

Sets values of 3×3 matrix array uniform variable at a given location for current program.

Optionally, if the transpose flag is set to true, transpose matrices will be set instead.


expect fun glUniform(location: Int, vararg values: Mat4<Float>, transpose: Boolean = false)

Sets values of 4×4 matrix array uniform variable at a given location for current program.

Optionally, if the transpose flag is set to true, transpose matrices will be set instead.


expect fun glUniform(location: Int, buffer: IntUniformBuffer)

Sets integer buffer uniform variable at a given location for current program.

Since

v2.0.0


expect fun glUniform(location: Int, buffer: FloatUniformBuffer)

Sets floating point buffer uniform variable at a given location for current program.

Since

v2.0.0

actual fun glUniform(location: Int, value: Boolean)

Sets value of boolean uniform variable at a given location for current program.

A boolean value is converted to an integer value of GL_TRUE or GL_FALSE.

Since

v1.1.0


actual fun glUniform(location: Int, value: Int)

Sets value of integer uniform variable at a given location for current program.


actual fun glUniform(location: Int, value: Float)

Sets value of floating point uniform variable at a given location for current program.


@JvmName(name = "glUniform2i")
actual fun glUniform(location: Int, value: Vec2<Int>)

Sets value of 2D vector uniform variable at a given location for current program.

Since

v2.0.0


@JvmName(name = "glUniform2f")
actual fun glUniform(location: Int, value: Vec2<Float>)

Sets value of 2D vector uniform variable at a given location for current program.


@JvmName(name = "glUniform3i")
actual fun glUniform(location: Int, value: Vec3<Int>)

Sets value of 3D vector uniform variable at a given location for current program.

Since

v2.0.0


@JvmName(name = "glUniform3f")
actual fun glUniform(location: Int, value: Vec3<Float>)

Sets value of 3D vector uniform variable at a given location for current program.


@JvmName(name = "glUniform4i")
actual fun glUniform(location: Int, value: Vec4<Int>)

Sets value of 4D vector uniform variable at a given location for current program.

Since

v2.0.0


@JvmName(name = "glUniform4f")
actual fun glUniform(location: Int, value: Vec4<Float>)

Sets value of 4D vector uniform variable at a given location for current program.


actual fun glUniform(location: Int, vararg values: Boolean)

Sets values of boolean array uniform variable at a given location for current program.

A boolean value is converted to an integer value of GL_TRUE or GL_FALSE.

Since

v2.0.0


actual fun glUniform(location: Int, vararg values: Int)

Sets values of integer array uniform variable at a given location for current program.


actual fun glUniform(location: Int, vararg values: Float)

Sets values of floating point array uniform variable at a given location for current program.


@JvmName(name = "glUniform2iv")
actual fun glUniform(location: Int, vararg values: Vec2<Int>)

Sets values of 2D vector array uniform variable at a given location for current program.

Since

v2.0.0


@JvmName(name = "glUniform2fv")
actual fun glUniform(location: Int, vararg values: Vec2<Float>)

Sets values of 2D vector array uniform variable at a given location for current program.


@JvmName(name = "glUniform3iv")
actual fun glUniform(location: Int, vararg values: Vec3<Int>)

Sets values of 3D vector array uniform variable at a given location for current program.

Since

v2.0.0


@JvmName(name = "glUniform3fv")
actual fun glUniform(location: Int, vararg values: Vec3<Float>)

Sets values of 3D vector array uniform variable at a given location for current program.


@JvmName(name = "glUniform4iv")
actual fun glUniform(location: Int, vararg values: Vec4<Int>)

Sets values of 4D vector array uniform variable at a given location for current program.

Since

v2.0.0


@JvmName(name = "glUniform4fv")
actual fun glUniform(location: Int, vararg values: Vec4<Float>)

Sets values of 4D vector array uniform variable at a given location for current program.


actual fun glUniform(location: Int, vararg values: Mat2<Float>, transpose: Boolean)

Sets values of 2×2 matrix array uniform variable at a given location for current program.

Optionally, if the transpose flag is set to true, transpose matrices will be set instead.


actual fun glUniform(location: Int, vararg values: Mat3<Float>, transpose: Boolean)

Sets values of 3×3 matrix array uniform variable at a given location for current program.

Optionally, if the transpose flag is set to true, transpose matrices will be set instead.


actual fun glUniform(location: Int, vararg values: Mat4<Float>, transpose: Boolean)

Sets values of 4×4 matrix array uniform variable at a given location for current program.

Optionally, if the transpose flag is set to true, transpose matrices will be set instead.


actual fun glUniform(location: Int, buffer: IntUniformBuffer)

Sets integer buffer uniform variable at a given location for current program.

Since

v2.0.0


actual fun glUniform(location: Int, buffer: FloatUniformBuffer)

Sets floating point buffer uniform variable at a given location for current program.

Since

v2.0.0