示例#1
0
文件: gl.go 项目: james4k/gl
//void glRectdv (const float64 *v1, const float64 *v2)
func Rectdv(a, b *[2]float64) {
	C.glRectdv((*C.GLdouble)(&a[0]), (*C.GLdouble)(&b[0]))
}
示例#2
0
文件: gl.go 项目: Nvveen/gl
//void glRectdv (const float64 *v1, const float64 *v2)
func Rectdv(a, b []float64) {
	if len(a) != 2 || len(b) != 2 {
		panic(ErrorInputSize)
	}
	C.glRectdv((*C.GLdouble)(&a[0]), (*C.GLdouble)(&b[0]))
}