我正想通过方法的签名glVertexPointer是
void glVertexPointer(GLint size, GLenum type, GLsizei stride, const GLvoid * pointer)
任何人都可以帮助我理解第三个论点的stride作用.
stride谷歌搜索后得到了这个定义
Amount of bytes from the beginning of one element to the beginning of the following element. If you pass a zero as stride, it means they are tightly packed. If you have an array of floats, which contains vertices like this, x1,y1,z1,x2,y2,z2... and so on, you can set stride to either zero (as tightly packed), or 12 (3 floats*4 bytes each …