Re: Re: Trouble getting buffer objects up and running!

Balazs Komuves <[email protected]> Wed, 7 Apr 2010 20:34:38 +0200
Newsgroups gmane.comp.lang.haskell.hopengl
Message-ID <[email protected]>
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 <[email protected]>

> 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 <[email protected]>:
> > 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
> [email protected]
> http://www.haskell.org/mailman/listinfo/hopengl
>

_______________________________________________
HOpenGL mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/hopengl