11-24-2003, 05:05 AM
Hi there!
Just wanted to know if this is a good way to draw many objects onto the screen, which are stored in different arrays:
glInterleavedArrays(GL_V3F, 0, ArrayNr1);
glDrawArrays(GL_POLYGONS, 0, 12);
glInterleavedArrays(GL_V3F, 0, ArrayNr2);
glDrawArrays(GL_POLYGONS, 0, 24);
I want to load vertice-data dynamically in my programm, so its nearly impossible to save the data in one static array. Or did I oversee another possible solution? Should I preload all my meshes at the beginning of the program into a big static array (although i maybe dont need half of it)?
Maybe an experienced opengl-specialist could give me some advice how to handle this.
Thx for any hints!
Just wanted to know if this is a good way to draw many objects onto the screen, which are stored in different arrays:
glInterleavedArrays(GL_V3F, 0, ArrayNr1);
glDrawArrays(GL_POLYGONS, 0, 12);
glInterleavedArrays(GL_V3F, 0, ArrayNr2);
glDrawArrays(GL_POLYGONS, 0, 24);
I want to load vertice-data dynamically in my programm, so its nearly impossible to save the data in one static array. Or did I oversee another possible solution? Should I preload all my meshes at the beginning of the program into a big static array (although i maybe dont need half of it)?
Maybe an experienced opengl-specialist could give me some advice how to handle this.
Thx for any hints!