From: Logan Capaldo Date: 2006-02-21T10:31:47+09:00 Subject: Re: can opengl work with an object method? On Feb 20, 2006, at 7:38 PM, anne001 wrote: > I started with robot.rb in the sample folder of opengl-0.32g > > It comes with a display proc: > display = Proc.new {} > > which is called by a glut function > GLUT.DisplayFunc(display); > > When I place the exact same code in a method > class Node > def traversetree > end > end > > upperarm = Node.new > GLUT.DisplayFunc(upperarm.traversetree); > > displays the image in a different size, and does not respond to resize > or keyboard keys > > Any option? > > I'm pretty sure you meant to write: GLUT.DisplayFunc(upperarm.method(:traversetree))