示例#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]))
}