dom WebGLRenderingContext.enableVertexAttribArray()

文章推薦指數: 80 %
投票人數:10人

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



請為這篇文章評分?