Example #1
0
File: gl.go Project: james4k/gl
//void glRectfv (const float *v1, const float *v2)
func Rectfv(a, b *[2]float32) {
	C.glRectfv((*C.GLfloat)(&a[0]), (*C.GLfloat)(&b[0]))
}
Example #2
0
File: gl.go Project: Nvveen/gl
//void glRectfv (const float *v1, const float *v2)
func Rectfv(a, b []float32) {
	if len(a) != 2 || len(b) != 2 {
		panic(ErrorInputSize)
	}
	C.glRectfv((*C.GLfloat)(&a[0]), (*C.GLfloat)(&b[0]))
}