예제 #1
0
파일: gl.go 프로젝트: 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]))
}
예제 #2
0
파일: gl.go 프로젝트: 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]))
}