Exemplo n.º 1
0
Arquivo: vertex.go Projeto: Nvveen/gl
//void glVertex2sv (const int16 *v)
func Vertex2sv(v []int16) {
	if len(v) != 2 {
		panic(ErrorInputSize)
	}
	C.glVertex2sv((*C.GLshort)(&v[0]))
}
Exemplo n.º 2
0
//void glVertex2sv (const int16 *v)
func Vertex2sv(v *[2]int16) {
	C.glVertex2sv((*C.GLshort)(&v[0]))
}