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