Vertex Arrays

Started by Mojomonkey, September 29, 2003, 19:40:36

Previous topic - Next topic

Mojomonkey

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.
ever send a man to do a monkey's work.

Mojomonkey

Nevermind, found my problem. Simple matter of incorrectly loading the arrays before placing them in the buffers.
ever send a man to do a monkey's work.