Posted on February 22, 2015

Haskell OpenGL Tutorial: colored triangle.



Credits:

I would like to thank Sven Panne for providing valuable advice on OpenGL statefulness as well as creating a great set of examples. Without his work, this set of tutorials may not be possible, parts and bits of ios source code is used in various shapes and forms throught these pages.

Sven has recently uploaded a bare-bones vertex-color triangle example Somebody may find it more useful to follow, because in this tutorial the code related to vertex colors is coupled with NGL.



tutorial files on GitHub

next: Haskell OpenGL Tutorial: Drawing textured triangles.
previous: Haskell OpenGL Tutorial: Resizing main window, key-events.

comments powered by Disqus