WebGL
The WebGLRenderingContext.getVertexAttribOffset() method
of the WebGL API returns the address of a
specified vertex attribute.
Syntax
getVertexAttribOffset(index, pname)
Parameters
index- : A WebGL_API/Types specifying the index of the vertex attribute.
pname- : A WebGL_API/Types which must be
gl.VERTEX_ATTRIB_ARRAY_POINTER.
- : A WebGL_API/Types which must be
Return value
A WebGL_API/Types indicating the address of the vertex attribute.
Examples
gl.getVertexAttribOffset(i, gl.VERTEX_ATTRIB_ARRAY_POINTER);
Specifications
Browser compatibility
See also
- WebGLRenderingContext.vertexAttribPointer()
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
