资源描述:
《OpenGL 3.2 API Quick Reference Card (1).pdf》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、OpenGL3.2APIQuickReferenceCardOpenGL®istheonlycross-platformgraphicsAPIthatenablesdevelopersVertexSpecificationvoidMultiTexCoord{1234}{sifd}v(enumtexture,ofsoftwareforPC,workstation,andsupercomputinghardwaretocreatehigh-Tcoords)BeginandEnd[2.6.1,2.6.3]texture:TEXTUREi(w
2、hereiis[0,MAX_TEXTURE_COORDS-1])performance,visually-compellinggraphicssoftwareapplications,inmarketsEnclosecoordinatesetsbetweenBegin/EndpairstosuchasCAD,contentcreation,energy,entertainment,gamedevelopment,voidNormal3{bsifd}(Tcoords);constructgeometricobjects.manufact
3、uring,medical,andvirtualreality.voidNormal3{bsifd}v(Tcoords);voidBegin(enummode);•seeFunctionNamereferstofunctionsonthisreferencecard.voidEnd(void);voidFogCoord{fd}(Tcoord);•[n.n.n]and[Tablen.n]refertosectionsandtablesintheOpenGL3.2coremode:POINTS,LINE_STRIP,LINE_LOOP,L
4、INES,POLYGON,voidFogCoord{fd}v(Tcoord);specification.QUAD_STRIP,QUADS,TRIANGLE_STRIP,TRIANGLE_FAN,voidColor{34}{bsifdubusui}(Tcomponents);•[n.n.n]referstosectionsintheOpenGLShadingLanguage1.50specification.TRIANGLES,LINES_ADJACENCY,LINE_STRIP_ADJACENCY,voidColor{34}{bsi
5、fdubusui}v(Tcomponents);•ContentshowninblueisremovedfromtheOpenGL3.2coreprofileandpresentTRIANGLES_ADJACENCY,TRIANGLE_STRIP_ADJACENCYvoidSecondaryColor3{bsifdubusui}(Tcomponents);onlyintheOpenGL3.2compatibilityprofile.ProfileselectionismadeatcontextPolygonEdges[2.6.2]vo
6、idSecondaryColor3{bsifdubusui}v(creation.FlageachedgeofpolygonprimitivesaseitherTcomponents);•[n.n.n]and[Tablen.n]refertosectionsandtablesintheOpenGL3.2compatibilityboundaryornon-boundary.profilespecification,andareshownonlywhentheydifferfromthecoreprofile.voidEdgeFlag(
7、booleanflag);voidIndex{sifdub}(Tindex);Specificationsareavailableatwww.opengl.org/registryvoidEdgeFlagv(boolean*flag);voidIndex{sifdub}v(Tindex);voidVertexAttrib{1234}{sfd}(uintindex,Tvalues);VertexSpecification[2.7]OpenGLOperationCommandLetters[Table2.1]Verticeshavetwo
8、,three,orfourcoordinates,andvoidVertexAttrib{123}{sfd}v(uintindex,Tvalues);Lettersareusedincommandstodenoteopt