예제 #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]))
}