Interface UniformMat4
- All Known Implementing Classes:
ManagedUniform
public interface UniformMat4
-
Method Summary
Modifier and TypeMethodDescriptionvoidset(org.joml.Matrix4f value) Sets the value of a 4x4 matrix uniformvoidsetFromArray(float[] values) Sets the value of a 4x4 matrix uniform through a float array
-
Method Details
-
set
@API(status=MAINTAINED, since="1.4.0") void set(org.joml.Matrix4f value) Sets the value of a 4x4 matrix uniform- Parameters:
value- a matrix
-
setFromArray
@API(status=MAINTAINED, since="1.15.0") void setFromArray(float[] values) Sets the value of a 4x4 matrix uniform through a float arrayThe
valuesarray must have a length of 16, and contain the matrix elements in column-major order.- Parameters:
values- an array representing a 4x4 matrix- Throws:
IllegalArgumentException- ifvalueshas an invalid length- ApiNote:
set(Matrix4f)should generally be preferred due to its inherent type safety
-