示例#1
0
文件: gl.go 项目: james4k/gl
//void glRasterPos2dv (const float64 *v)
func RasterPos2dv(v *[2]float64) {
	C.glRasterPos2dv((*C.GLdouble)(&v[0]))
}
示例#2
0
文件: gl.go 项目: Nvveen/gl
//void glRasterPos2dv (const float64 *v)
func RasterPos2dv(v []float64) {
	if len(v) != 2 {
		panic(ErrorInputSize)
	}
	C.glRasterPos2dv((*C.GLdouble)(&v[0]))
}