WebGLRenderingContext.getVertexAttribOffset() | Web API

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

WebGLRenderingContext.getVertexAttribOffset() 方法源于 WebGL API returns the address of a specified vertex attribute. 视频教程     下载中心     Wiki     联络 登录   注册 WebGLRenderingContext.getVertexAttribOffset() 首页 WebAPI WebGLRenderingContext WebGLRenderingContext.getVertexAttribOffset() 在此页 句法 范例 规范 浏览器兼容性 另请参阅 相关话题 WebGLRenderingContext.getVertexAttribOffset() 方法源于 WebGLAPI returnstheaddressofaspecifiedvertexattribute. 句法 GLintptrgl.getVertexAttribOffset(index,pname); 参数 index A GLuint specifyingtheindexofthevertexattribute. pname A GLenum whichmustbe gl.VERTEX_ATTRIB_ARRAY_POINTER . 返回值 A GLintptr indicatingtheaddressofthevertexattribute. 范例 gl.getVertexAttribOffset(i,gl.VERTEX_ATTRIB_ARRAY_POINTER); 规范 规范 状态 Comment WebGL1.0 Thedefinitionof'getVertexAttribOffset'inthatspecification. Recommendation 初始定义。

OpenGLES2.0 Thedefinitionof'glGetVertexAttribPointerv'inthatspecification. Standard ManpageoftheOpenGLAPI. 浏览器兼容性 Thecompatibilitytableinthispageisgeneratedfromstructureddata.Ifyou'dliketocontributetothedata,pleasecheckout https://github.com/mdn/browser-compat-data andsendusapullrequest. 更新GitHub上的兼容性数据 Desktop Mobile Chrome Edge Firefox InternetExplorer Opera Safari Androidwebview ChromeforAndroid FirefoxforAndroid OperaforAndroid SafarioniOS SamsungInternet getVertexAttribOffset Chrome 9 Edge 12 Firefox 4 IE 11 Opera 12 Safari 5.1 WebViewAndroid Yes ChromeAndroid 25 FirefoxAndroid Yes OperaAndroid 12 SafariiOS 8 SamsungInternetAndroid 1.5 图例 完整支持 完整支持 另请参阅 WebGLRenderingContext.vertexAttribPointer() 最后修改: 2019年3月23日 , 由MDN贡献者 相关话题 WebGLAPI WebGLRenderingContext 特性 canvas drawingBufferHeight drawingBufferWidth 方法 activeTexture() attachShader() bindAttribLocation() bindBuffer() bindFramebuffer() bindRenderbuffer() bindTexture() blendColor() blendEquation() blendEquationSeparate() blendFunc() blendFuncSeparate() bufferData() bufferSubData() checkFramebufferStatus() clear() clearColor() clearDepth() clearStencil() colorMask() commit() compileShader() compressedTexImage[23]D() compressedTexSubImage2D() copyTexImage2D() copyTexSubImage2D() createBuffer() createFramebuffer() createProgram() createRenderbuffer() createShader() createTexture() cullFace() deleteBuffer() deleteFramebuffer() deleteProgram() deleteRenderbuffer() deleteShader() deleteTexture() depthFunc() depthMask() depthRange() detachShader() disable() disableVertexAttribArray() drawArrays() drawElements() enable() enableVertexAttribArray() finish() flush() framebufferRenderbuffer() framebufferTexture2D() frontFace() generateMipmap() getActiveAttrib() getActiveUniform() getAttachedShaders() getAttribLocation() getBufferParameter() getContextAttributes() getError() getExtension() getFramebufferAttachmentParameter() getParameter() getProgramInfoLog() getProgramParameter() getRenderbufferParameter() getShaderInfoLog() getShaderParameter() getShaderPrecisionFormat() getShaderSource() getSupportedExtensions() getTexParameter() getUniform() getUniformLocation() getVertexAttrib() getVertexAttribOffset() hint() isBuffer() isContextLost() isEnabled() isFramebuffer() isProgram() isRenderbuffer() isShader() isTexture() lineWidth() linkProgram() pixelStorei() polygonOffset() readPixels() renderbufferStorage() sampleCoverage() scissor() shaderSource() stencilFunc() stencilFuncSeparate() stencilMask() stencilMaskSeparate() stencilOp() stencilOpSeparate() texImage2D() texParameter[fi]() texSubImage2D() uniform[1234][fi][v]() uniformMatrix[234]fv() useProgram() validateProgram() vertexAttrib[1234]f[v]() vertexAttribPointer() viewport() RelatedpagesforWebGL ANGLE_instanced_arrays EXT_blend_minmax EXT_color_buffer_half_float EXT_disjoint_timer_query EXT_frag_depth EXT_sRGB EXT_shader_texture_lod EXT_texture_filter_anisotropic OES_element_index_uint OES_standard_derivatives OES_texture_float OES_texture_float_linear OES_texture_half_float OES_texture_half_float_linear OES_vertex_array_object WEBGL_color_buffer_float WEBGL_compressed_texture_atc WEBGL_compressed_texture_etc1 WEBGL_compressed_texture_pvrtc WEBGL_compressed_texture_s3tc WEBGL_compressed_texture_s3tc_srgb WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_depth_texture WEBGL_draw_buffers WEBGL_lose_context WebGL2RenderingContext WebGLActiveInfo WebGLBuffer WebGLContextEvent WebGLFramebuffer WebGLObject WebGLProgram WebGLQuery WebGLRenderbuffer WebGLSampler WebGLShader WebGLShaderPrecisionFormat WebGLSync WebGLTexture WebGLTransformFeedback WebGLUniformLocation WebGLVertexArrayObject



請為這篇文章評分?