LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: Mojomonkey on September 29, 2003, 19:40:36

Title: Vertex Arrays
Post by: Mojomonkey on September 29, 2003, 19:40:36
I originally posted this on JGO, but realize it may be better answered here:

Can anyone post an example or point to an example of rendering something simple such as a color triangle using glVertexPointer and glColorPointer? I am unable to get anything displayed and am unsure where my problem lies. I believe it has to do with how I am setting up the FloatBuffers.  I am not getting any exceptions/errors, just nothing displayed. Any help would be appreciated.

Thanks.
Title: Vertex Arrays
Post by: Mojomonkey on September 29, 2003, 20:27:17
Nevermind, found my problem. Simple matter of incorrectly loading the arrays before placing them in the buffers.