Haskell - Fungen Framework - rendering problem

I'm starting to use the Fungen library for Haskell to make some games, but I have a problem with rendering. When I compile and run some code, it shows me images and everything that works, but black bars appear in every game loop. My friend installed the same tool and that’s it, but he doesn’t have this rendering problem using the same code that I wrote!

Does anyone know how I can fix this?

Thank!

+5
source share
1 answer

It looks like you can easily initialize the Haskell FunGEn program for a double buffer by saying:

import Graphics.UI.GLUT

and then before creating your window:

 initialDisplayMode $= [DoubleBuffered]
+2
source

All Articles