Example #1
0
File: matrix.go Project: Nvveen/gl
//void glLoadMatrixf (const float32 *m)
func LoadMatrixf(m []float32) {
	if len(m) != 16 {
		panic(ErrorInputSize)
	}
	C.glLoadMatrixf((*C.GLfloat)(&m[0]))
}
Example #2
0
//void glLoadMatrixf (const float32 *m)
func LoadMatrixf(m *[16]float32) {
	C.glLoadMatrixf((*C.GLfloat)(&m[0]))
}