WebGL types - Web APIs | MDN

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

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



請為這篇文章評分?