[HOpenGL] Open GL 3.2

minh thu noteed at gmail.com
Fri Sep 25 00:33:41 EDT 2009


2009/9/25 Alexander Göransson <alexander.goransson at gmail.com>:
> Hello! (new to the list)
>
> I am taking a course in computer graphics, so i installed the latest
> version of the OpenGL package through cabal.
>
> At the top of of the documentation page it says OpenGL 3.2, but when i
> read different parts of the documentation on hoogle it says OpenGL 2.1
> every here and there.
>
> What's what? (and if I can, how do i load my GLSL code?)

Hi,

Probably hoogle has the own (and old) documentation. If you go to
hackage and look the package list [1], you'll see the link to the
latest package [2] which has itself links to its documentation.

The most important part is in the Core31 module [3] where you'll find
for instance the glCreateProgram, glShaderSource, .... functions which
you can use to load your GLSL code.

I just realize I've answered your question with the OpenGLRaw package.
See for the OpenGL package on [1] too.

HTH,
Thu

[1] http://hackage.haskell.org/packages/archive/pkg-list.html
[2] http://hackage.haskell.org/package/OpenGLRaw
[3] http://hackage.haskell.org/packages/archive/OpenGLRaw/1.1.0.0/doc/html/Graphics-Rendering-OpenGL-Raw-Core31.html


More information about the HOpenGL mailing list