How to use VOB with Materials??

There are a vertex array, for this vertex array there are some indexed arrays for each there are material (DIFFUSE COLOR, AMBIEN COLOR, SPECULAR COLOR, etc.).
In this case I can create a vertex buffer and element buffers. I make glDrawElements(…) for each element buffer. All is well.
But how I can to add some material for each pieces or for each vertex, somebody other…
I want create the render without queries to CPU.

Didn’t you already post this in the beginners forum?