[HOpenGL] Re: fullscreen mode
Stephen
analytic at gmail.com
Wed Nov 12 20:07:00 EST 2008
to answer my own question, gamemode (
http://hackage.haskell.org/packages/archive/GLUT/2.1.1.2/doc/html/Graphics-UI-GLUT-GameMode.html)
seems to do the trick
> enterGameMode
> g <- getStdGen
> gamestate <- newIORef (initialState g)
> windowSize $= Size 800 500
> keyboardMouseCallback $= Just (keyboardMouse gamestate)
> addTimerCallback msInterval (tick gamestate)
> displayCallback $= (display gamestate)
> return()
which is good :)
On Thu, Nov 13, 2008 at 12:58 AM, Stephen <analytic at gmail.com> wrote:
> I don't know if I'm missing out on something, but the 'fullscreen' function
> doesn't seem to work when i try to use it; I just get a "Not in scope:
> `fullscreen'
> " error. Am I missing out on something? It's a function that features in
> several tutorials...it's mentioned in the old documentation, but I seem not
> to be able to find anything about it in the new one :/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/hopengl/attachments/20081113/d7105dff/attachment.htm
More information about the HOpenGL
mailing list