|
# File ../lib/fox/glshapes.rb, line 323
def initialize(*args)
if args.length == 7
super(args[0], args[1], args[2], SHADING_SMOOTH|STYLE_SURFACE,
args[6], args[6])
else
super(args[0], args[1], args[2], SHADING_SMOOTH|STYLE_SURFACE)
end
@width = args[3] ? args[3] : 1.0
@height = args[4] ? args[4] : 1.0
@depth = args[5] ? args[5] : 1.0
setRange(FXRange.new(-0.5*@width, 0.5*@width,
-0.5*@height, 0.5*@height,
-0.5*@depth, 0.5*@depth))
end
|