I’m trying to convert a display list into a VBO.
I currently make a call like this…
glTexCoord4f(x, y, z, w );
glVertex2f( -1.0f, -1.0f );
glVertex2f( +1.0f, -1.0f );
glVertex2f( +1.0f, +1.0f );
glVertex2f( -1.0f, +1.0f );
I having trouble translating this into VBO. Help
glBindBuffer( GL_ARRAY_BUFFER, xyzw[0] );
glTexCoordPointer(4,GL_FLOAT,0,0);
glBindBuffer( GL_ARRAY_BUFFER, quad[0] );
glVertexPointer(2,GL_FLOAT,0,0);
gl.glDrawArrays(GL.GL_QUADS,0,0);
Oh… I’m also not particular about the quad and would prefer a point sprite… if that’s easier and more efficient.