[Haskell-cafe] New OpenGL package: efficient way to convert datatypes?

Peter Verswyvelen bugfact at gmail.com
Wed Sep 30 09:56:29 EDT 2009


The newest package seems to require using GLdouble/GLfloat.

What is the most efficient way to convert Double/Float to GLdouble/GLfloat?
I'm currently using realToFrac. But essentially the operation should be a
nop on my machine.

I haven't looked at the core code yet (on Windows, last time I checked, the
ghc-core util did not work, and without it, reading core is even harder)

Thanks,
Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090930/7707c09d/attachment.html


More information about the Haskell-Cafe mailing list