This works fine for me on PPC and x86 10.4.10. Which GLUT implementation are you using? Does the code hang or does it crash?

Alan Mock

On Aug 1, 2007, at 7:55 PM, Paul L wrote:

I'm trying to get cross platform GLUT/OpenGL program to run, but even
the simplest code hang on OS X with GHC 6.6 or GHC 6.6.1

import Graphics.UI.GLUT
import Graphics.Rendering.OpenGL

main = do
  getArgsAndInitialize
  createAWindow "Hello window"
  mainLoop

createAWindow windowName = do
  createWindow windowName
  displayCallback $= clear [ColorBuffer]

Has anyone been successful at getting GLUT to work on OS X?

Regards,
Paul L
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to