示例#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]))
}