I’m experimenting on OpenGL ES 1.1 with CUDA.
I want to implement a Coverflow. Therefore, I calculate the Positions of each Cover with CUDA and put them into a Vertex Buffer Object. In OpenGL ES, there are no QUADS, so i make them with 2 triangles and make indices for the vertices.
For every Cover, the tex coordinates and the indeces are the same (because 1 Cover ever are 2 triangles). So I think it must be enough to have the one big Buffer, with the vertices for the triangles and two small, for the texture and the indices. But how can i get this together. Is there a method to get an Offset, of the Big Buffer, like this?
for(int i = 0; i<=NUM_COVERS; i++)
glTexCoordPointer(3, GL_FLOAT, 0, 0);
//How can I jump to any position in buf? With an Offset?
glVertexPointer(3, GL_FLOAT, 0, OFFSET);
glDrawElements(GL_TRIANGLES, 6, GL_UNSIGNED_BYTE, 0);