LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: k0myer01 on May 29, 2004, 00:20:39

Title: In desperate need of explicit help with VBOs
Post by: k0myer01 on May 29, 2004, 00:20:39
Hello all,

First I must tell you that I am a JOGL user, but I can't get an answer that is clear enough for me on that forum, so I am hoping someone here has the patience to give a full and complete answer to this.  That poor Cas fellow tirelessly answered my questions in order to get me through understanding vertex arrays, and here I am again :)

I spent about 8 hours trying to decipher some online examples and finally gave up.

Anyway...let's use this scenario:

1) Trying to render one triange in white with normals
2) Use glDrawRangeElements()
3) Show me the code for declarations, init(), and display()

Thanks for your time.
Title: In desperate need of explicit help with VBOs
Post by: princec on May 29, 2004, 09:22:16
I can't help you here meself because I've never done 'em. I wouldn't mind seeing a bit of example code so's I can bung it in my sprite engine though.

Cas :)
Title: In desperate need of explicit help with VBOs
Post by: tomb on May 31, 2004, 19:32:16
There are two vbo examples that is part of the lwjgl source code:
http://cvs.sourceforge.net/viewcvs.py/java-game-lib/LWJGL/src/java/org/lwjgl/test/opengl/VBOIndexTest.java
http://cvs.sourceforge.net/viewcvs.py/java-game-lib/LWJGL/src/java/org/lwjgl/test/opengl/VBOTest.java