资源描述:
《OpenGL 3.2 API Quick Reference Card.pdf》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、OpenGL3.2APIQuickReferenceCardOpenGL®istheonlycross-platformgraphicsAPIthatenablesdevelopersVertexSpecificationvoidMultiTexCoord{1234}{sifd}v(enumtexture,ofsoftwareforPC,workstation,andsupercomputinghardwaretocreatehigh-Tcoords)BeginandEnd[2.6.1,2.6.3]texture:TEXTUREi
2、(whereiis[0,MAX_TEXTURE_COORDS-1])performance,visually-compellinggraphicssoftwareapplications,inmarketsEnclosecoordinatesetsbetweenBegin/EndpairstosuchasCAD,contentcreation,energy,entertainment,gamedevelopment,voidNormal3{bsifd}(Tcoords);constructgeometricobjects.manu
3、facturing,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_
4、LOOP,LINES,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
5、{34}{bsifdubusui}v(Tcomponents);•ContentshowninblueisremovedfromtheOpenGL3.2coreprofileandpresentTRIANGLES_ADJACENCY,TRIANGLE_STRIP_ADJACENCYvoidSecondaryColor3{bsifdubusui}(Tcomponents);onlyintheOpenGL3.2compatibilityprofile.ProfileselectionismadeatcontextPolygonEdge
6、s[2.6.2]voidSecondaryColor3{bsifdubusui}v(creation.FlageachedgeofpolygonprimitivesaseitherTcomponents);•[n.n.n]and[Tablen.n]refertosectionsandtablesintheOpenGL3.2compatibilityboundaryornon-boundary.profilespecification,andareshownonlywhentheydifferfromthecoreprofile.v
7、oidEdgeFlag(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]V
8、erticeshavetwo,three,orfourcoordinates,andvoidVertexAttrib{123}{sfd}v(uintindex,Tvalues);Lettersareusedincommandstodenoteopt