Пример #1
0
// Matrix4 sets the value of the uniform to the passed matrix.
func (u Uniform) Matrix4Multi(matrix []mgl32.Mat4) {
	gl.UniformMatrix4fv(int32(u), int32(len(matrix)), false, (*float32)(gl.Ptr(matrix)))
}
Пример #2
0
// Matrix4 sets the value of the uniform to the passed matrix.
func (u Uniform) Matrix4(matrix *mgl32.Mat4) {
	gl.UniformMatrix4fv(int32(u), 1, false, (*float32)(unsafe.Pointer(matrix)))
}