[Fxruby-users] FXGLLine in glviewer
Status: Inactive
Brought to you by:
lyle
From: Peter J. P. <PJP...@UC...> - 2003-06-08 04:20:41
|
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 -- ************************************************************** Peter J. Puchyr, M. Sc., P. Eng. University of Calgary Dept. of Chemical & Petroleum Engineering 2500 University Drive NW Calgary, Alberta T2N 1N4 (403) 210-9772 |