示例#1
0
文件: gl.go 项目: james4k/gl
//void glRectiv (const int *v1, const int *v2)
func Rectiv(a, b *[2]int32) {
	C.glRectiv((*C.GLint)(&a[0]), (*C.GLint)(&b[0]))
}
示例#2
0
文件: gl.go 项目: Nvveen/gl
//void glRectiv (const int *v1, const int *v2)
func Rectiv(a, b []int32) {
	if len(a) != 2 || len(b) != 2 {
		panic(ErrorInputSize)
	}
	C.glRectiv((*C.GLint)(&a[0]), (*C.GLint)(&b[0]))
}