示例#1
0
文件: glu.go 项目: nkostelnik/glu
func Cylinder(q unsafe.Pointer, base, top, height float32, slices, stacks int) {
	C.gluCylinder((*[0]byte)(q), C.GLdouble(base), C.GLdouble(top), C.GLdouble(height), C.GLint(slices), C.GLint(stacks))
}
示例#2
0
文件: glu.go 项目: collects/Go-OpenGL
func (quad *GLUquadric) Cylinder(base, top, height gl.GLdouble, slices, stacks gl.GLint) {
	C.gluCylinder((*C.GLUquadric)(quad), C.GLdouble(base), C.GLdouble(top), C.GLdouble(height), C.GLint(slices), C.GLint(stacks))
}