Interface UniformMat4

All Known Implementing Classes:
ManagedUniform

public interface UniformMat4
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    set(org.joml.Matrix4f value)
    Sets the value of a 4x4 matrix uniform
    void
    setFromArray(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 array

      The values array 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 - if values has an invalid length
      ApiNote:
      set(Matrix4f) should generally be preferred due to its inherent type safety