I have an OpenGL scene with thousands of vertices and would like to pass them as VBOs/IBOs. Executing the glGetIntegerv(GL_MAX_ELEMENTS_VERTICES, &maxVertices) command reveals a limitation of 2048 max amount of vertices, despite the fact I have a recent video card. In addition to that, an array in C is limited to an int, hence 32k vertices max.
How can I work around these limitations to anyway display all my objects ?
double
s can't be an array index, butlong
can be.int
andlong
are both integers. It's rare forint
to be as small as 16 bits on platforms with recent videos cards too. – FlexoGL_MAX_ELEMENTS_VERTICES
. – Nicol Bolas