Haskell is about computation by calculation of values.
DisplayLists / FBOs / VBOs are very very stateful by nature. I.e. "give me a display list / buffer object".
How do these bindings work in Haskell?
[I do understand monads; so a technical explaination, as opposed to a fluffy one, is preferred].
Thanks!
HOpenGL does everything in the IO monad. The API it presents is more OpenGL-like than Haskell-like. For example,
So all the low-level OpenGL interactions do end up being very stateful.