On 8/2/07, Dave Tapley <[EMAIL PROTECTED]> wrote:
> Using a BitmapFont I can get strings to appear but they demonstrate
> the odd behaviour of translating themselves a distance equal to their
> length every time my displayCallback function is evaluated.

I've never used OpenGL from Haskell, but it sounds like renderString
is modifying your modelview matrix with each call, presumably to make
it easier to chain lots of text together in one frame. Since the
matrix never gets reset, the translation effect accumulates each time
the scene is redrawn.

The quick fix would be to call loadIdentity (i.e. glLoadIdentity) each
time you update, before drawing anything.


Stuart
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to