example of glInterleavedArrays and glDrawElements

Started by DeusFacticius, July 15, 2005, 14:20:13

Previous topic - Next topic

DeusFacticius

i'm having trouble getting interleaved arrays and indexed triangle lists to work, as a former c/c++ programmer i had no problem doing this but there must be something different about how you do it in lwjgl because it doesn't work.  the buffers being the main difference, i think i'm missing a step thats not obvious?  like flipping the buffers maybe? any ideas? an example here would be great

Fool Running

I was only able to get interleaved arrays to work while using VBOs.
Programmers will, one day, rule the world... and the world won't notice until its too late.Just testing the marquee option ;D

DeusFacticius

issue resolved, found out that yes, buffers just need to be flipped before sending them in to glInterleavedArrays() and glDrawElements()