Original Post
Hi, I was just reading in the spec that glXxxxPointer functions (except glVertexAttribPointer) have been deprecated in 3.0 and removed in 3.1 (not using the compatibility api). Until now I was using those functions to bind individual components of my vertex buffer, e.g. for a depth-only/shadow map pass I bound coords and maye texcoords, etc. Since they now are deprecated I figure I should use glVertexAttribPointer instead. However, I wasn't able to find any information on how they are bound to named attributes like position. I'm using CG so I'm not that familiar with GLSL but the spec says that gl_position isn't a varying, so it has to be bound to a fixed attribute index (like 0), right? Additionally, IIRC the bulk work was done by the driver when glVertexPointer was called. When does that happen now? Thanks in advance for your replies. Thomas