c++ - Draw array of VBOs in OpenGL ES -
i have array of vertex array objects, each contain vbo reference, , and array of matrices, of same size, such as:
unsigned int vaoarray[128]; matrix_t matrixarray[128];
rather than
for (i = 0; < 128; i++) { glbindvertexarray(vaoarray[i]); gluniformmatrix4fv(u_mvp_matrix_slot, 1, gl_false, &matrixarray[i]); gldrawarrays(bgl_triangle_fan, 0, 4); }
is there way can push entire array of vaos , matrices gpu @ once? maybe using instancing extension somehow?
i can't combine them in 1 vao/vbo, because combination can change (this drawing text, each character having own vao/vbo combo).
and yes, realize involves using es 2.0 extensions. that's ok.
btw, of vaos each character identical except vbo id, if helps.
Comments
Post a Comment