[Haskell-cafe] HopenGL
Ruben Zilibowitz
r.zilibowitz at student.unsw.edu.au
Thu Jun 7 20:10:03 EDT 2007
Hi,
Thanks for the reply. The Lines.hs example program seems to work just
right. Unfortunately I still can't get colored lines to work in my 3d
program. Maybe it has something to do with the fact my one is 3d and
the example program is in 2d. Any other ideas? I would post some
source code but there's quite a lot of code.
Ruben
On 08/06/2007, at 3:15 AM, Dan Piponi wrote:
> On 6/6/07, Ruben Zilibowitz <r.zilibowitz at student.unsw.edu.au> wrote:
>> If anyone knows how to get HOpenGL to draw coloured lines, I'd
>> like...
>
> See http://cvs.haskell.org/cgi-bin/cvsweb.cgi/~checkout~/fptools/
> libraries/GLUT/examples/RedBook/Lines.hs
>
> Note the color line which in this example uses white.
>
> For debugging purposes play with clearColor because you can use that
> to test whether you're rendering the infamous black-on-black image or
> simply rendering nothing :-)
>
> (Disclaimer: For some reason, today I can't test any of the redbook
> examples because Graphics.UI.GLUT is missing from my current
> installation. I'm guessing that if you have a non-broken installation
> they will mostly work fine. I certainly had no problem rendering lines
> based on these examples when I last had a non-broken installation.)
> --
> Dan
More information about the Haskell-Cafe
mailing list