
Just tried it, same configuration OS X 10.6.2, GHC 6.12.1, GLFW 4.2,
etc. Fresh install. No problem at all, and no work around needed.
On 3/17/10, Paul L
It sounds like the windowSizeCallback wasn't called when the app first started up. You may try naming that callback function, and calling it once during startup time.
I have not test it myself, but I don't recall this problem when I previously worked on OS X 10.5 with GLFW.
On 3/16/10, Carsten Schultz
wrote: Hi everyone,
I am working with
MacOS X 10.6.2 ghc 6.12.1 GLFW 0.4.2 OpenGL 2.4.0.1 mkbndl (freshly installed, should be 0.2.1)
I have copied sample program from http://www.haskell.org/haskellwiki/GLFW#Sample_Program to a file named GLFWTest.hs. (I had to change some Floats to GLfloats.)
No I do:
ghc --make GLFWTest.hs mkbndl -f GLFWTest open GLFWTest.app
Is that what I am supposed to do?
The program window remains white, if I move another window in front of it and away again, it becomes black, but if I draw lines on it (that is the function program) they do not appear. If I move or resize the window, it gets drawn correctly, and I can see that the lines that I had drawn had in fact been registered. From this point on the program works as expected.
Is this an OS X specific issue? How do I solve it?
Thanks
Carsten
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- Regards, Paul Liu
Yale Haskell Group http://www.haskell.org/yale
-- Regards, Paul Liu Yale Haskell Group http://www.haskell.org/yale