|
# File ../lib/fox/glshapes.rb, line 515
def initialize(*args)
if args.length == 5
super(args[0], args[1], args[2], SHADING_SMOOTH|STYLE_SURFACE)
else
super(args[0], args[1], args[2], SHADING_SMOOTH|STYLE_SURFACE,
args[5], args[5])
end
@height = args[3] ? args[3] : 1.0
@radius = args[4] ? args[4] : 1.0
@slices = SLICES_NUMBER
@stacks = STACKS_NUMBER
@loops = LOOPS
setRange(FXRange.new(-@radius, @radius, 0, @height, -@radius, @radius))
end
|