WebGL types - Web APIs | MDN
文章推薦指數: 80 %
WebGL 1 ; GLsizeiptr, long long, Special type for pointer arithmetic. ; GLubyte, octet, 8-bit twos complement unsigned integer. ; GLushort ... SkiptomaincontentSkiptosearchSkiptoselectlanguageReferencesWebAPIsWebGL:2Dand3DgraphicsforthewebWebGLtypesArticleActionsEnglish(US)WebGL1WebGL2WebGLextensionsSpecificationsSeealsoRelatedTopics WebGLAPI WebGLtutorial GettingstartedwithWebGL Adding2DcontenttoaWebGLcontext UsingshaderstoapplycolorinWebGL AnimatingobjectswithWebGL Creating3DobjectsusingWebGL UsingtexturesinWebGL LightinginWebGL AnimatingtexturesinWebGL Examplesandarticles Matrixmathfortheweb WebGLmodelviewprojection WebGLbestpractices UsingWebGLextensions Abasic2DWebGLanimationexample WebGLbyexample Interfaces WebGLRenderingContext WebGL2RenderingContext WebGLActiveInfo WebGLBuffer WebGLContextEvent WebGLFramebuffer WebGLProgram WebGLQuery WebGLRenderbuffer WebGLSampler WebGLShader WebGLShaderPrecisionFormat WebGLSync WebGLTexture WebGLTransformFeedback WebGLUniformLocation WebGLVertexArrayObject Documentation: Contribute TheMDNproject WebGL1WebGL2WebGLextensionsSpecificationsSeealsoWebGLtypesThefollowingtypesareusedinWebGLinterfaces.WebGL1ThesetypesareusedwithinaWebGLRenderingContext. Type WebIDLtype Description GLenum unsignedlong Usedforenums.Seealsothelistof constants. GLboolean boolean Abooleanvalue. GLbitfield unsignedlong Abitfieldthatstoresmultiple,logicalbits.Usedforexamplein WebGLRenderingContext.clear(). GLbyte byte 8-bittwoscomplementsignedinteger. GLshort short 16-bittwoscomplementsignedinteger. GLint long 32-bittwoscomplementsignedinteger. GLsizei long Usedforsizes(e.g.widthandheightofthedrawingbuffer). GLintptr longlong Specialtypeforpointerarithmetic. GLsizeiptr longlong Specialtypeforpointerarithmetic. GLubyte octet 8-bittwoscomplementunsignedinteger. GLushort unsignedshort 16-bittwoscomplementunsignedinteger. GLuint unsignedlong 32-bittwoscomplementunsignedinteger. GLfloat unrestrictedfloat 32-bitIEEEfloatingpointnumber. GLclampf unrestrictedfloat Clamped32-bitIEEEfloatingpointnumber. WebGL2ThesetypesareusedwithinaWebGL2RenderingContext.AllWebGL1typesareusedaswell. Type WebIDLtype Description GLint64 longlong Signed64-bitintegernumber. WebGLextensionsThesetypesareusedwithinWebGLextensions. Type WebIDLtype Description GLuint64EXT longlong Unsigned64-bitintegernumber. SpecificationsSpecificationWebGLSpecification#5.1WebGL2.0Specification#3.1WebGLEXT_disjoint_timer_queryExtensionSpecificationSeealso WebGLRenderingContext Foundaproblemwiththispage?EditonGitHubSourceonGitHubReportaproblemwiththiscontentonGitHubWanttofixtheproblemyourself?SeeourContributionguide.Lastmodified:May13,2022,byMDNcontributors
延伸文章資訊
- 1Using textures in WebGL - Web APIs | MDN
- 2检测WebGL - Web API 接口参考
了解更多并加入MDN Web Docs 社区。 检测WebGL. WebGL特性检测.
- 3WebGL - Web APIs | MDN
WebGL (Web Graphics Library) 是一個透過瀏覽器渲染3D及2D圖像的 JavaScript API ,且不需要安裝任何插件。 WebGL 透過與OpenGL ES 2....
- 4WebGL 入門- Web APIs
This page was translated from English by the community. Learn more and join the MDN Web Docs comm...
- 5Using WebGL extensions - Web APIs | MDN
WebGL, like its sister APIs (OpenGL and OpenGL ES), supports extensions. A complete list of exten...