On Wednesday 01 August 2007 18:30, Dave Tapley wrote:
I'm having a lot of trouble using renderString from Graphics.UI.GLUT.Fonts.
All my attempts to render a StrokeFont have so far failed.
Using a BitmapFont I can get strings to appear but they demonstrate
the odd behaviour of translating
On 8/26/07, Sven Panne [EMAIL PROTECTED] wrote:
This is actually not a bug, but a feature. :-) From the Haddock docs for
renderString:
Render the string in the named font, without using any display lists.
Rendering a
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
Hi Dave, everyone...
Dave Tapley wrote:
Hi all,
I'm having a lot of trouble using renderString from Graphics.UI.GLUT.Fonts.
All my attempts to render a StrokeFont have so far failed.
Using a BitmapFont I can get strings to appear but they demonstrate
the odd behaviour of translating themselves
Your code is not rendering stroke font, but bitmap. Use the following
code to render str at x and y position.
GL.currentRasterPosition $= vertex4 x y 0 1
GLUT.renderString GLUT.Fixed8By13 str
where vertex4 is defined as:
vertex4 :: Float - Float - Float - Float - GL.Vertex4 Float