[Haskell-cafe] Opengl and Haskell GLdouble/GLfloat vs. Double/Float

Bas van Dijk v.dijk.bas at gmail.com
Fri Sep 28 17:50:57 EDT 2007


On 9/28/07, Jules Bean <jules at jellybean.co.uk> wrote:
> Certainly GLfloat, GLdouble, GLint are members of all the type classes
> you would hope them to be and they are no less convenient to use.

And so, if you need it, you can always coerce between the GL and the
"standard" Haskell types by using the general coercion functions:
'fromIntegral' and 'realToFrac'.

Bas


More information about the Haskell-Cafe mailing list