
25 Feb
2010
25 Feb
'10
6:01 p.m.
On Thu, 2010-02-25 at 12:59 -0800, Tyler Hayes wrote:
For anyone comfortable with OpenGl in Haskell, what is the equivalent for glutTimerFunc? Is it addTimerCallback? If so, how does it work--I've tried it and I can't seem to get it to work...
According to source it calls glutTimerFunc with timeout, the callback and 0. Such code seems to works for me:
import Graphics.UI.GLUT
main = do getArgsAndInitialize _ <- createWindow "Test" addTimerCallback 1000 (putStrLn "Callback") mainLoop
What do you mean 'to get it to work'? Regards