[HOpenGL] Finally: GLSL support

Sven Panne sven.panne at aedion.de
Tue Nov 14 13:37:38 EST 2006


FYI: The OpenGL package has now partial support for GLSL. The API is not yet 
completely stable and support for generic vertex attribute arrays and 
querying vertex attributes and uniform variables is still missing (setting is 
of course already implemented). This is enough to run the "Hello, world!" of 
shader programming, the brick example from the Orange Book, see the attached 
pictures and the code at:

   http://darcs.haskell.org/packages/GLUT/examples/OrangeBook/ogl2brick/

If you want to test the new features, grab the latest packages via darcs:

   darcs get http://darcs.haskell.org/packages/OpenGL
   darcs get http://darcs.haskell.org/packages/GLUT

Comments and suggestions are, as always, highly welcome.

Cheers,
   S.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Brick1_small.png
Type: image/png
Size: 29752 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/hopengl/attachments/20061114/e13941cd/Brick1_small-0001.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Brick2_small.png
Type: image/png
Size: 58586 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/hopengl/attachments/20061114/e13941cd/Brick2_small-0001.png


More information about the HOpenGL mailing list