glUniform

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

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

A boolean uniform 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.


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

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


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

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


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

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


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.


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

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


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

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


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

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


actual fun glUniform(    location: Int,     vararg values: Mat2,     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,     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,     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.

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

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

A boolean uniform 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)

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


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

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


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

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


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)

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


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

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


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

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


expect fun glUniform(    location: Int,     vararg values: Mat2,     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,     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,     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.

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

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

A boolean uniform 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.


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

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


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

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


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

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


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.


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

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


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

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


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

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


actual fun glUniform(    location: Int,     vararg values: Mat2,     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,     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,     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.