예제 #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))
}