开发者

Haskell - Fungen Framework - Rendering problem

开发者 https://www.devze.com 2023-04-04 04:53 出处:网络
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 ga

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 t开发者_如何学Gohe same code i wrote!.

Does anybody know how can I fix this?

Thanks!


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]
0

精彩评论

暂无评论...
验证码 换一张
取 消