Пример #1
0
Файл: gl.go Проект: james4k/gl
//void glRasterPos2fv (const float *v)
func RasterPos2fv(v *[2]float32) {
	C.glRasterPos2fv((*C.GLfloat)(&v[0]))
}
Пример #2
0
Файл: gl.go Проект: Nvveen/gl
//void glRasterPos2fv (const float *v)
func RasterPos2fv(v []float32) {
	if len(v) != 2 {
		panic(ErrorInputSize)
	}
	C.glRasterPos2fv((*C.GLfloat)(&v[0]))
}