Beispiel #1
0
Datei: gl.go Projekt: 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]))
}
Beispiel #2
0
Datei: gl.go Projekt: 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]))
}