WebGLRenderingContext.getVertexAttribOffset() - Web APIs
文章推薦指數: 80 %
The WebGLRenderingContext.getVertexAttribOffset() method of the WebGL API returns the address of a specified vertex attribute. SkiptomaincontentSkiptosearchSkiptoselectlanguageReferencesWebAPIsWebGLRenderingContextWebGLRenderingContext.getVertexAttribOffset()SyntaxExamplesSpecificationsBrowsercompatibilitySeealsoRelatedTopicsWebGLAPIWebGLRenderingContextPropertiescanvasdrawingBufferHeightdrawingBufferWidthMethodsactiveTexture()attachShader()bindAttribLocation()bindBuffer()bindFramebuffer()bindRenderbuffer()bindTexture()blendColor()blendEquation()blendEquationSeparate()blendFunc()blendFuncSeparate()bufferData()bufferSubData()checkFramebufferStatus()clear()clearColor()clearDepth()clearStencil()colorMask() Experimental 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()makeXRCompatible()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()RelatedpagesforWebGLANGLE_instanced_arraysEXT_blend_minmaxEXT_color_buffer_half_floatEXT_disjoint_timer_queryEXT_frag_depthEXT_sRGBEXT_shader_texture_lodEXT_texture_filter_anisotropicOES_element_index_uintOES_standard_derivativesOES_texture_floatOES_texture_float_linearOES_texture_half_floatOES_texture_half_float_linearOES_vertex_array_objectWEBGL_color_buffer_floatWEBGL_compressed_texture_etc1WEBGL_compressed_texture_pvrtcWEBGL_compressed_texture_s3tcWEBGL_compressed_texture_s3tc_srgbWEBGL_debug_renderer_infoWEBGL_debug_shadersWEBGL_depth_textureWEBGL_draw_buffersWEBGL_lose_contextWebGL2RenderingContextWebGLActiveInfoWebGLBufferWebGLContextEventWebGLFramebufferWebGLObjectWebGLProgramWebGLQueryWebGLRenderbufferWebGLSamplerWebGLShaderWebGLShaderPrecisionFormatWebGLSyncWebGLTextureWebGLTransformFeedbackWebGLUniformLocationWebGLVertexArrayObjectSyntaxExamplesSpecificationsBrowsercompatibilitySeealsoWebGLRenderingContext.getVertexAttribOffset() TheWebGLRenderingContext.getVertexAttribOffset()method oftheWebGLAPIreturnstheaddressofa specifiedvertexattribute. SyntaxgetVertexAttribOffset(index,pname) Parameters index AGLuintspecifyingtheindexofthevertexattribute. pname AGLenumwhichmustbegl.VERTEX_ATTRIB_ARRAY_POINTER. ReturnvalueAGLintptrindicatingtheaddressofthevertexattribute.Examplesgl.getVertexAttribOffset(i,gl.VERTEX_ATTRIB_ARRAY_POINTER); SpecificationsSpecificationWebGLSpecification#5.14.10BrowsercompatibilityBCDtablesonlyloadinthebrowserSeealso WebGLRenderingContext.vertexAttribPointer() Foundaproblemwiththispage?EditonGitHubSourceonGitHubReportaproblemwiththiscontentonGitHubWanttofixtheproblemyourself?SeeourContributionguide.Lastmodified:Jun3,2022,byMDNcontributors
延伸文章資訊
- 1getVertexAttribOffset方法 - Runebook.dev
... Dart项目作者根据知识共享署名-相同方式共享许可协议v4.0许可。 https://api.dart.dev/stable/2.15.1/dart-web_gl/RenderingCo...
- 2glGetVertexAttribPointerv
- 3getVertexAttribOffset - Kotlin Programming Language
abstract fun getVertexAttribOffset( index: Int, pname: Int ): Int (source). Stay in touch: Contri...
- 4getVertexAttribOffset | Apple Developer Documentation
Instance Method. getVertexAttribOffset. Safari Desktop 9.0+ Safari Mobile 9.0+. Declaration. GLsi...
- 5WebGLRenderingContext.getVertexAttribOffset() | Web API
WebGLRenderingContext.getVertexAttribOffset() 方法源于 WebGL API returns the address of a specified v...