Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Haskell - Fungen Framework - Rendering problem

Tags:

haskell

I'm starting to use Fungen library for Haskell to make some games, but I've a problem with rendering. When I compile and run some code, it shows me the images and everything working, but at every game cycle, some black stripes appear. A friend of mine installed the same tool and things but he doesn't have that rendering problem, using the same code i wrote!.

Does anybody know how can I fix this?

Thanks!

like image 250
Cristian Suarez Avatar asked Nov 05 '22 14:11

Cristian Suarez


1 Answers

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

import Graphics.UI.GLUT

and then prior to creating your window stating:

 initialDisplayMode $= [DoubleBuffered]
like image 53
Justin Hamilton Avatar answered Nov 09 '22 08:11

Justin Hamilton