Re: [Fxruby-users] FXGLLine in glviewer
Status: Inactive
Brought to you by:
lyle
From: Joel V. <vj...@PA...> - 2003-06-08 05:21:49
|
Peter J. Puchyr wrote: > Hi, > > I'm just trying to learn how to use OpenGL in FXRuby. I tried > to add the drawing of a line to the glviewer example, using a > statement completely analogous to the other objects in the scene, > namely, > > gp2.append(FXGLLine.new(-1.0,-1.0,-1.0, 1.0,1.0,1.0)) > > placed after the FXGLCylinder statement, and this produces the > error message: > > in `append': This FXGLObject * already released (RuntimeError). > > It makes no difference if I create and name the object in a separate > statement, and then append it to the group of FXGLObjects; the error > still occurs with exactly the same message. > > Have I done something completely stupid, or is this a bug? > > Peter > I ran into this problem too, and never understood it. So I always append other shapes (such as a very narrow rectangle, instead of a line). Joel |