[HOpenGL] Re: Trouble getting buffer objects up and running!
Balazs Komuves
bkomuves at gmail.com
Wed Apr 7 14:34:38 EDT 2010
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 <alexander.goransson at gmail.com>
> 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 <alexander.goransson at gmail.com>:
> > 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 at haskell.org
> http://www.haskell.org/mailman/listinfo/hopengl
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/hopengl/attachments/20100407/91a502c9/attachment.html
More information about the HOpenGL
mailing list