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