Safe Haskell | None |
---|
This FunGEn module contains some functions to print text on the screen. Fonts supported: Bitmap9By15, Bitmap8By13, BitmapTimesRoman10, BitmapTimesRoman24 BitmapHelvetica10, BitmapHelvetica12, BitmapHelvetica18
- type Text = (String, BitmapFont, (GLdouble, GLdouble), GLclampf, GLclampf, GLclampf)
- data BitmapFont
- = Fixed8By13
- | Fixed9By15
- | TimesRoman10
- | TimesRoman24
- | Helvetica10
- | Helvetica12
- | Helvetica18
- putGameText :: [Text] -> IO ()
Documentation
data BitmapFont
The bitmap fonts available in GLUT. The exact bitmap to be used is defined by the standard X glyph bitmaps for the X font with the given name.
Fixed8By13 | A fixed width font with every character fitting in an 8
by 13 pixel rectangle.
( |
Fixed9By15 | A fixed width font with every character fitting in an 9
by 15 pixel rectangle.
( |
TimesRoman10 | A 10-point proportional spaced Times Roman font.
( |
TimesRoman24 | A 24-point proportional spaced Times Roman font.
( |
Helvetica10 | A 10-point proportional spaced Helvetica font.
( |
Helvetica12 | A 12-point proportional spaced Helvetica font.
( |
Helvetica18 | A 18-point proportional spaced Helvetica font.
( |
putGameText :: [Text] -> IO ()Source