dom WebGLRenderingContext.enableVertexAttribArray()
文章推薦指數: 80 %
The WebGLRenderingContext.enableVertexAttribArray() method of the WebGL API turns the generic vertex attribute array on at a given index position. AllTopics HTML CSS JavaScript APIs Python3Language Python3Library DOMAPIReference Home Dom Pages WebGLRenderingContext.enableVertexAttribArray() WebGLRenderingContext.enableVertexAttribArray() TheWebGLRenderingContext.enableVertexAttribArray()methodoftheWebGLAPIturnsthegenericvertexattributearrayonatagivenindexposition. Syntax JavaScriptCopyCode voidgl.enableVertexAttribArray(index); Parameters index AGLuintspecifyingtheindexofthevertexattributetoenable. Returnvalue None. Examples JavaScriptCopyCode gl.enableVertexAttribArray(0); Specifications Specification Status Comment WebGL1.0Thedefinitionof'enableVertexAttribArray'inthatspecification. Recommendation Initialdefinition. OpenGLES2.0Thedefinitionof'glEnableVertexAttribArray'inthatspecification. Standard ManpageoftheOpenGLAPI. Browsercompatibility Desktop Mobile Feature Chrome Edge Firefox(Gecko) InternetExplorer Opera Safari Basicsupport 9 12 4.0(2.0) 11 12 5.1 Feature Android ChromeforAndroid FirefoxMobile(Gecko) FirefoxOS IEMobile OperaMobile SafariMobile Basicsupport ? 25 4.0(2.0) 1.0 ? 12 8.0 Seealso WebGLRenderingContext.disableVertexAttribArray() License ©2016MozillaContributorsLicensedundertheCreativeCommonsAttribution-ShareAlikeLicensev2.5orlater. https://developer.mozilla.org/en-us/docs/web/api/webglrenderingcontext/enablevertexattribarray API Method Reference WebGL WebGLRenderingContext
延伸文章資訊
- 1dom WebGLRenderingContext.enableVertexAttribArray()
The WebGLRenderingContext.enableVertexAttribArray() method of the WebGL API turns the generic ver...
- 2GL.EnableVertexAttribArray Method (OpenTK.Graphics.ES20)
Learn more about the OpenTK.Graphics.ES20.GL.EnableVertexAttribArray in the OpenTK.Graphics.ES20 ...
- 3glEnableVertexAttribArray
- 4WebGLRenderingContext.enableVertexAttribArray()
我们用 enableVertexAttribArray() 函数来激活 aVertexPosition 中记录的索引位置,以便在后面对该顶点属性进行数据绑定。 使用 vertexAttribPo...
- 5WebGLRenderingContext.enableVertexAttribArray() - Web APIs
The WebGLRenderingContext method enableVertexAttribArray(), part of the WebGL API, turns on the g...