Now I desire to add vbo based text (it represented as single VBO buffer too, therefore I have 2 VBO buffers). How can I implement rendering order like this: 'background - border - text - some icon' using 2 VBO buffers?
Posted 27 March 2012 - 04:14 AM
Posted 27 March 2012 - 09:10 AM
glBindBufferARB( GL_ELEMENT_ARRAY_BUFFER_ARB, myIndicesBufferObject ); // bind indices, also stored on the GPU
glDrawElements( GL_TRIANGLES, count, GL_UNSIGNED_SHORT, 0 ); // render
glBindBufferARB( GL_ELEMENT_ARRAY_BUFFER_ARB, 0);
- apply background material, render background, using the indices that refer to the background quadPosted 27 March 2012 - 01:06 PM
<Background>
<Border>
<TextButton/>
<TextButton/>
<TextButton/>
</Border>
<Some_other_batched_GUI/>
</Background>