[HOpenGL] HOpenGL and the new library hierarchy

Simon Marlow simonmar@microsoft.com
Mon, 25 Feb 2002 10:24:11 -0000


> Sorry for the long period of silence, but I'm currently=20
> slowly recovering
> from a head crash (my hard disk's head, to be exact, not *mine* :-).
>=20
> I'm going to re-implement HOpenGL based on the .spec files=20
> and the new FFI,
> moving to the new library hierarchy on the way.

Great!

> So I'm seeking advice where
> to put it exactly. My suggestion:
>=20
> The GL/GLU modules reside into the subtrees
>=20
>     Graphics.Drawing.OpenGL.GL
>     Graphics.Drawing.OpenGL.GLU
>=20
> with 2 modules of the same names, re-exporting the modules from the
> subtrees. A module Graphics.Drawing.OpenGL re-exports those=20
> two modules
> again.

This looks fine.

> The GLUT modules reside in Graphics.UI.GLUT, with a module of the same
> name, re-exporting the modules below it plus Graphics.Drawing.OpenGL
> (Graphics.UI.OpenGL.GLUT looks a little bit like overkill, IMHO).
>=20
> I'm a little bit unhappy with "Drawing", "Rendering" would be more
> appropriate, but I could live with that...

I have no objection to a Drawing=3D=3D>Rendering change; if you suggest =
this on libraries@haskell.org and no-one complains, then go ahead - we =
don't have any other occupants of the Graphics.Drawing namespace as yet.

Cheers,
	Simon