|
# File ../lib/fox/glshapes.rb, line 533
def drawshape(viewer)
quad = GLU::NewQuadric()
GLU::QuadricDrawStyle(quad, GLU::FILL)
GL::PushMatrix()
GL::Rotate(-90, 1, 0, 0)
GLU::Cylinder(quad, @radius, @radius, @height, @slices, @stacks)
GLU::QuadricOrientation(quad, GLU::INSIDE)
GLU::Disk(quad, 0, @radius, @slices, @loops)
GL::Translate(0, 0, @height)
GLU::QuadricOrientation(quad, GLU::OUTSIDE)
GLU::Disk(quad, 0, @radius, @slices, @loops)
GL::PopMatrix()
GLU::DeleteQuadric(quad)
end
|