Aditi Goswami wrote:
Hello all,
Can anyone explain me when is the drawImplemnetation function of a Drawable class called? I am trying to use it and it is called only once.. I tried to setUseDisplayList() to false but then this function is called for each frame putting unneccesary load on cpu. I need to call the
drawImplementation function on user inputs.. how can i do this?

If you want, you could leave setUseDisplayList() as true, and call dirtydisplaylist each time you get user input. This will discard the display list and make sure drawimplementation is called on the next frame, but thereafter it will be displaylisted again.

Thanks
Aditi

--
Chris 'Xenon' Hanson aka Eric Hammil | http://www.3DNature.com/ eric at logrus
 "I set the wheels in motion, turn up all the machines, activate the programs,
  and run behind the scenes. I set the clouds in motion, turn up light and 
sound,
  activate the window, and watch the world go 'round." -Prime Mover, Rush.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to