PDA

View Full Version : interleaved array locking?



Statix
02-27-2003, 11:36 AM
Anyone know how to go about locking an interleaved array? Only tutorials I can find are for locking vertex arrays and they are vague at best.

This is my current rendercode:
glInterleavedArrays(GL_T2F_N3F_V3F, 0, TriangleSurfaceStructUV);
glDrawArrays(GL_TRIANGLES, 0, TriSurfaceCount*3); //render surface *3 points a surface

glInterleavedArrays(GL_T2F_N3F_V3F, 0, QuadSurfaceStructUV);
glDrawArrays(GL_QUADS, 0, QuadSurfaceCount*4); //render surface *4 points a surface

I'd like to lock the array data to see if I can pull more fps but have no idea on how to go about doing it, any help would be greatly appreciated http://www.opengl.org/discussion_boards/ubb/smile.gif

Ostsol
02-27-2003, 02:20 PM
Would you happen to be refering to the EXT_compiled_vertex_array extension?