The bindMatrixUniform Method

A utility method to lookup a uniform in a program by name and loads a 4x4 floating point matrix into the uniform.

277     protected void bindMatrixUniform(int program, float[] matrix, String name)
278     {
279         int uniformLocation = GLES20.glGetUniformLocation(program, name);
280         GLES20.glUniformMatrix4fv(uniformLocation, 1, false, matrix, 0);
281     }

Notes

We fetch the location of the uniform, then load one matrix into it starting from the 0th element of the matrix array. The third argument indicates whether the matrix has been transposed. OpenGL ES requires this to be false.