OpenGL

From HaskellWiki
Revision as of 21:29, 6 April 2008 by Henk-Jan van Tuyl (talk | contribs) (Opengl moved to OpenGL)
Jump to navigation Jump to search

This is a stub page for Haskell's OpenGL and GLUT bindings. It is meant as a starting point to replace the outdated and misleading documentation at the old page.

First, note that the implementation is far more up-to-date than that old page suggested (originally, it was quite useful, but the page hasn't kept up with the implementation for a long time now). To find more recent information, try:

the hopengl mailing list

the API docs for the OpenGL binding

the API docs for the GLUT binding

the darcs repo with the sources for the OpenGL binding

the darcs repo with the sources for the GLUT binding

In particular, note that the examples/ directory in the GLUT repo contains lots of examples, including translations of the red book examples.

Both the API documentation and the examples are best studied with the original specs and the original red book examples at hand. An index of the examples from v1.1 of the red book, with screen shots, can be found here

Projects using the OpenGL bindings:

  • Frag, a 3D first-person shooter game

HOpenGL Resources:


OpenGL Resources:

Getting Started:

  • assuming you know Haskell, any OpenGL tutorial of your choice should get you going (browsing the OpenGL site is also a good idea)
  • use the Red Book, and its example code translations, to understand the small differences between OpenGL and HOpenGL
  • use the OpenGL and GLUT specs to find your way around the HOpenGL Haddock documentation
  • use the HopenGL list for questions and success stories