Exemplo n.º 1
0
Arquivo: gl.go Projeto: 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]))
}
Exemplo n.º 2
0
Arquivo: gl.go Projeto: 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]))
}