[HOpenGL] Quadrics

Andre W B Furtado awfurtado@uol.com.br
Mon, 26 Nov 2001 23:42:29 -0200


In OpenGL, the following command is used to create a new Quadric Object:

qObj = gluNewQuadric();

And, to delete it, we have:

gluDeleteQuadric(qObj);

In HOpenGL, to create a new Quadric, the command is:

qObj <- newQuadric

But how do I issue deleteQuadric? Its signature is:

deleteQuadric :: QuadricObj -> Addr -> IO ()

but I don't know how to use it. What is this "Addr" parameter for?

-- Andre