generating a 2d maze in HOpenGL/Postscript

Not sure how useful this is, but I often wondered what everyone else is doing with HOpenGL, and one can never have enough examples. This one is translated from someone else's OCaml program (see comments for original c.l.f thread). Tranlation was mostly straightforward. One hitch was the use of End/Begin style for LineStrip in the OCaml version - we have renderPrimitive instead, which keeps us from making errors in Begin/End bracketing. But what about programs that rely on fiddling with the bracketing (not that that is recommended)? Here I got round the issue by using edgeFlag, but what about a general solution? I saw primitiveRestart in GL.BeginEnd, but there's no explanation of what it does, and it isn't supported on my platform anyway. Enjoy, Claus

Hi, On Friday 01 April 2005 15:30, Claus Reinke wrote:
Not sure how useful this is, but I often wondered what everyone else is doing with HOpenGL, and one can never have enough
Someone is writing a little game named quad. Not finished, but playable. It needs a new ghc6.4 and wxhaskell. www.thepatrick.net.ms -> aktuelles (german site but english documentation of the source) Cheers Patrick
participants (2)
-
Claus Reinke
-
Patrick Scheibe