is it possible to draw just aprt of a VBO if you somehow provide opengl with a stat index and a the number of polys to draw?
otherwise i will have to divide my index buffer into smaller VBO’s which would be very annoying :-/
thx
is it possible to draw just aprt of a VBO if you somehow provide opengl with a stat index and a the number of polys to draw?
otherwise i will have to divide my index buffer into smaller VBO’s which would be very annoying :-/
thx
Yes. You provide OpenGL with a start index (offset) and a number of polys to draw. Which is what glDrawElements takes.
Yes. You provide OpenGL with a start index (offset) and a number of polys to draw. Which is what glDrawElements takes.
Please explain how this works with VBOs. When you render a VBO the last parameter is a null pointer.
Please explain how this works with VBOs. When you render a VBO the last parameter is a null pointer.
You resurrected a 3 year old thread for that question? One that would be answered simply by going to the " OpenGL SDK "?
I just guessed that a pointer to an integer offset would do it, and got it working.
OpenGL SDK = “blah, blah, blah”
EPSILON = 0.001
Abs( OpenGL SDK - Needle in a haystack ) < EPSILON