
Hello,
I'm using an old and customized version of the OpenGL binding, but the
following should work:
do
[vbo] <- genObjectNames 1 :: IO [BufferObject]
bindBuffer ArrayBuffer $= Just vbo
(or at least I hope I didn't misunderstand the question)
Balazs
2010/4/3 Alexander Göransson
I forgot to mention _where_ I got stuck (i kept awake when writing the mail with *great* trouble) :)
It's in lab1.hs on the row that says {- i am a long comment -}
What i can't do in haskell is done in the CPP code with: glGenVertexArrays(1, &vertexArrayObject); glBindVertexArray(vertexArrayObject);
regards // Alexander
2010/4/3 Alexander Göransson
: Hello!
I'm trying to port a C++ program that uses Vertex Buffer objects in OpenGL 3.0. As of now it seems like i can't get any further ;(
Anyone who can help with as to what should be done next... I'm attaching the C++ source and shader files as well as my haskell source.
regards // Alexander
_______________________________________________ HOpenGL mailing list HOpenGL@haskell.org http://www.haskell.org/mailman/listinfo/hopengl