Following the famous OpenGL Haskell tutorial , I made my first HOpenGL program. Here is the code:
import Graphics.Rendering.OpenGL import Graphics.UI.GLUT main = do (progname, _) <- getArgsAndInitialize createWindow "Hello World" displayCallback $= clear [ ColorBuffer ] mainLoop
It compiles and starts, but the window simply does not appear - after the “maximize” command you can see it for some fractions of a second, and then minimize it. Can this problem be connected to my ATI Radeon graphics card?
PS OS - Ubuntu 10.10, the program is compiled with GHC 7.0.3.
source share