小编Max*_*mer的帖子

步幅在OpenGL | ES中意味着什么

我正想通过方法的签名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 …

opengl-es stride

8
推荐指数
1
解决办法
3142
查看次数

标签 统计

opengl-es ×1

stride ×1