📄 glut.ps
字号:
3530(it)X3597(continuously)X266 6144(July)N419(23,)X539(1997)X3794(Page)X3970(2)X3 p%%Page: 3 310 s 0 xH 0 xS 1 f10 f0 96(h)N24(hhh)X4176(h)X4200(hhh)X9 s1 f266 480(g)N268(gl)X306(lu)X328(ut)X366(t)X392(\()X394(\()X424(3)X426(3G)X464(GL)X518(LU)X564(UT)X618(T)X668(\))X670(\))X1942(G)X1944(GL)X1998(LU)X2044(UT)X2098(T)X2174(\()X2176(\()X2206(3)X2208(3.)X2246(.5)X2266(5)X2308(\))X2310(\))X3582(g)X3584(gl)X3622(lu)X3644(ut)X3682(t)X3708(\()X3710(\()X3740(3)X3742(3G)X3780(GL)X3834(LU)X3880(UT)X3934(T)X3984(\))X3986(\))X10 s842 864(calls)N1009(GLUT)X1243(callbacks)X1562(as)X1649(necessary.)X554 998(Window)N850(Management.)X842 1094(These)N1054(routines)X1332(create)X1545(and)X1681(control)X1928(windows.)X554 1228(Overlay)N833(Management.)X842 1324(These)N1054(routines)X1332(establish)X1632(and)X1768(manage)X2038(overlays)X2330(for)X2444(windows.)X554 1458(Menu)N761(Management.)X842 1554(These)N1054(routines)X1332(create)X1545(and)X1681(control)X1928(pop-up)X2175(menus.)X554 1688(Callback)N859(Registration.)X842 1784(These)N1054(routines)X1332(register)X1593(callbacks)X1912(to)X1994(be)X2090(called)X2302(by)X2402(the)X2520(GLUT)X2754(event)X2948(processing)X3311(loop.)X554 1918(Color)N756(Index)X959(Colormap)X1299(Management.)X842 2014(These)N1054(routines)X1332(allow)X1530(the)X1648(manipulation)X2090(of)X2177(color)X2362(index)X2560(colormaps)X2914(for)X3028(windows.)X554 2148(State)N734(Retrieval.)X842 2244(These)N1054(routines)X1332(allows)X1561(programs)X1884(to)X1966(retrieve)X2232(state)X2399(from)X2575(GLUT.)X554 2378(Font)N720(Rendering.)X842 2474(These)N1054(routines)X1332(allow)X1530(rendering)X1858(of)X1945(stroke)X2161(and)X2297(bitmap)X2539(fonts.)X554 2608(Geometric)N913(Shape)X1129(Rendering.)X842 2704(These)N1093(routines)X1410(allow)X1647(the)X1804(rendering)X2171(of)X2298(3D)X2456(geometric)X2837(objects)X3124(including)X3486(spheres,)X3807(cones,)X842 2800(icosahedrons,)N1301(and)X1437(teapots.)X9 s266 2934(C)N268(CO)X318(ON)X372(NV)X426(VE)X480(EN)X526(NT)X580(TI)X626(IO)X652(ON)X706(NS)X760(S)X10 s554 3030(GLUT)N790(window)X1070(and)X1208(screen)X1437(coordinates)X1830(are)X1952(expressed)X2292(in)X2377(pixels.)X2611(The)X2759(upper)X2965(left)X3095(hand)X3274(corner)X3503(of)X3593(the)X3714(screen)X3943(or)X554 3126(a)N615(window)X898(is)X976(\(0,0\).)X1175(X)X1258(coordinates)X1653(increase)X1942(in)X2029(a)X2090(rightward)X2427(direction;)X2759(Y)X2842(coordinates)X3237(increase)X3525(in)X3611(a)X3671(downward)X554 3222(direction.)N884(Note:)X1087(This)X1254(is)X1332(inconsistent)X1739(with)X1906(OpenGL's)X2271(coordinate)X2636(scheme)X2903(that)X3049(generally)X3374(considers)X3703(the)X3827(lower)X554 3318(left)N681(hand)X857(coordinate)X1216(of)X1303(a)X1359(window)X1637(to)X1719(be)X1815(at)X1893(\(0,0\))X2067(but)X2189(is)X2262(consistent)X2602(with)X2764(most)X2939(popular)X3204(window)X3482(systems.)X554 3510(Integer)N810(identi\256ers)X1158(in)X1248(GLUT)X1490(begin)X1696(with)X1866(one,)X2030(not)X2160(zero.)X2347(So)X2459(window)X2745(identi\256ers,)X3113(menu)X3319(identi\256ers,)X3687(and)X3832(menu)X554 3606(item)N716(indexes)X981(are)X1100(based)X1303(from)X1479(one,)X1635(not)X1757(zero.)X554 3798(In)N644(GLUT's)X939(ANSI)X1149(C)X1225(binding,)X1513(for)X1631(most)X1810(routines,)X2112(basic)X2301(types)X2494(\(int,)X2649(char*\))X2879(are)X3002(used)X3173(as)X3264(parameters.)X3661(In)X3752(routines)X554 3894(where)N771(the)X889(parameters)X1262(are)X1381(directly)X1646(passed)X1880(to)X1962(OpenGL)X2263(routines,)X2561(OpenGL)X2862(types)X3051(\(GL\257oat\))X3374(are)X3493(used.)X554 4086(The)N699(header)X934(\256les)X1087(for)X1201(GLUT)X1435(should)X1668(be)X1764(included)X2060(in)X2142(GLUT)X2376(programs)X2699(with)X2861(the)X2979(following)X3310(include)X3566(directive:)X554 4220(#include)N850(<GL/glut.h>)X554 4354(Because)N842(a)X898(very)X1061(large)X1242(window)X1520(system)X1762(software)X2060(vendor)X2304(\(who)X2490(will)X2635(remain)X2879(nameless\))X3221(has)X3349(an)X3446(apparent)X3744(inability)X554 4450(to)N637(appreciate)X989(that)X1130(OpenGL's)X1490(API)X1640(is)X1714(independent)X2127(of)X2215(their)X2383(window)X2662(system)X2905(API,)X3075(portable)X3359(ANSI)X3567(C)X3641(GLUT)X3876(pro-)X554 4546(grams)N772(should)X1007(not)X1131(directly)X1398(include)X1656(<GL/gl.h>)X2019(or)X2108(<GL/glu.h>.)X2531(Instead,)X2805(ANSI)X3014(C)X3089(GLUT)X3325(programs)X3650(should)X3885(rely)X554 4642(on)N654(<GL/glut.h>)X1077(to)X1159(include)X1415(the)X1533(necessary)X1866(OpenGL)X2167(and)X2303(GLU)X2488(related)X2727(header)X2962(\256les.)X554 4834(The)N702(ANSI)X912(C)X988(GLUT)X1225(library)X1462(archive)X1722(is)X1798(typically)X2101(named)X2338(libglut.a)X2625(on)X2728(Unix)X2911(systems.)X3207(GLUT)X3445(programs)X3772(need)X3948(to)X554 4930(link)N708(with)X880(the)X1008(system's)X1318(OpenGL)X1629(and)X1775(GLUT)X2019(libraries)X2312(\(and)X2484(any)X2629(libraries)X2921(these)X3115(libraries)X3407(potentially)X3778(depend)X554 5026(on\).)N707(A)X791(set)X906(of)X999(window)X1283(system)X1531(dependent)X1887(libraries)X2176(may)X2340(also)X2495(be)X2597(necessary)X2936(for)X3056(linking)X3308(GLUT)X3549(programs.)X3899(For)X554 5122(example,)N870(programs)X1197(using)X1394(the)X1516(X11)X1678(GLUT)X1916(implementation)X2441(typically)X2744(need)X2919(to)X3004(link)X3151(with)X3316(Xlib,)X3501(the)X3622(X)X3703(extension)X554 5218(library,)N814(possibly)X1106(the)X1230(X)X1314(Input)X1509(extension)X1842(library,)X2103(the)X2228(X)X2313(miscellaneous)X2794(utilities)X3060(library,)X3321(and)X3464(the)X3589(math)X3776(library.)X554 5314(An)N672(example)X964(X11/Unix)X1304(compile)X1582(line)X1722(would)X1942(look)X2104(like:)X554 5448(cc)N646(-o)X733(foo)X860(foo.c)X1043(-lglut)X1236(-lGLU)X1470(-lGL)X1646(-lXmu)X1875(-lXi)X2024(-lXext)X2249(-lX11)X2456(-lm)X9 s266 5582(S)N268(SE)X310(EE)X356(E)X432(A)X434(AL)X488(LS)X534(SO)X576(O)X10 s554 5678(glutAddMenuEntry,)N1227(glutAddSubMenu,)X1847(glutAttachMenu,)X2419(glutBitmapCharacter,)X3138(glutBitmapWidth,)X3744(glutBut-)X554 5774(tonBoxFunc,)N1027(glutChangeToMenuEntry,)X1928(glutChangeToSubMenu,)X2775(glutCopyColormap,)X3469(glutCreateMenu,)X266 6144(Page)N442(3)X3577(July)X3730(23,)X3850(1997)X4 p%%Page: 4 410 s 0 xH 0 xS 1 f10 f0 96(h)N24(hhh)X4176(h)X4200(hhh)X9 s1 f266 480(g)N268(gl)X306(lu)X328(ut)X366(t)X392(\()X394(\()X424(3)X426(3G)X464(GL)X518(LU)X564(UT)X618(T)X668(\))X670(\))X1942(G)X1944(GL)X1998(LU)X2044(UT)X2098(T)X2174(\()X2176(\()X2206(3)X2208(3.)X2246(.5)X2266(5)X2308(\))X2310(\))X3582(g)X3584(gl)X3622(lu)X3644(ut)X3682(t)X3708(\()X3710(\()X3740(3)X3742(3G)X3780(GL)X3834(LU)X3880(UT)X3934(T)X3984(\))X3986(\))X10 s554 864(glutCreateSubWindow,)N1342(glutCreateWindow,)X2007(glutDestroyMenu,)X2627(glutDestroyWindow,)X3336(glutDeviceGet,)X3859(glut-)X554 960(DialsFunc,)N990(glutDisplayFunc,)X1630(glutEntryFunc,)X2198(glutEstablishOverlay,)X2980(glutExtensionSupported,)X3859(glut-)X554 1056(FullScreen,)N952(glutGet,)X1244(glutGetColor,)X1718(glutGetModi\256ers,)X2321(glutIdleFunc,)X2782(glutInit,)X3069(glutInitDisplayMode,)X3792(glutIn-)X554 1152(itWindowPosition,)N1202(glutKeyboardFunc,)X1870(glutLayerGet,)X2364(glutMainLoop,)X2892(glutMenuStatusFunc,)X3624(glutMotion-)X554 1248(Func,)N787(glutMouseFunc,)X1362(glutOverlayDisplayFunc,)X2228(glutPopWindow,)X2826(glutPositionWindow,)X3561(glutPostOver-)X554 1344(layRedisplay,)N1052(glutPostRedisplay,)X1713(glutRemoveMenuItem,)X2517(glutRemoveOverlay,)X3246(glutReshapeFunc,)X3881(glu-)X554 1440(tReshapeWindow,)N1213(glutSetColor,)X1710(glutSetCursor,)X2243(glutSetMenu,)X2745(glutSetWindow,)X3337(glutSetWindowTitle,)X554 1536(glutShowOverlay,)N1175(glutShowWindow,)X1813(glutSolidCone,)X2330(glutSolidCube,)X2847(glutSolidDodecahedron,)X3664(glutSolidI-)X554 1632(cosahedron,)N961(glutSolidOctahedron,)X1670(glutSolidSphere,)X2227(glutSolidTeapot,)X2784(glutSolidTetrahedron,)X3511(glutSolidTorus,)X554 1728(glutSpaceballButtonFunc,)N1523(glutSpaceballMotionFunc,)X2510(glutSpaceballRotateFunc,)X3470(glutSpecialFunc,)X554 1824(glutStrokeCharacter,)N1271(glutStrokeWidth,)X1875(glutSwapBuffers,)X2489(glutTabletButtonFunc,)X3266(glutTabletMotionFunc,)X554 1920(glutTimerFunc,)N1074(glutUseLayer,)X1551(glutVisibilityFunc,)X9 s266 2054(R)N268(RE)X318(EF)X364(FE)X406(ER)X452(RE)X502(EN)X548(NC)X602(CE)X652(ES)X698(S)X10 s554 2150(Mark)N755(Kilgard,)X2 f1047(Programming)X1523(OpenGL)X1827(for)X1948(the)X2074(X)X2151(Window)X2441(System)X1 f2664(,)X2712(Addison-Wesley,)X3299(ISBN)X3509(0-201-48359-9,)X554 2246(1996.)N554 2438(Mark)N760(Kilgard,)X2 f1058(The)X1211(OpenGL)X1520(Utility)X1757(Toolkit)X2016(\(GLUT\))X2307(Programming)X2789(Interface)X3112(API)X3270(Version)X3552(3)X1 f3625(\(the)X3783(of\256cial)X554 2534(GLUT)N788(speci\256cation\).)X9 s266 2668(A)N268(AU)X322(UT)X376(TH)X422(HO)X476(OR)X530(R)X10 s554 2764(Mark)N748(J.)X819(Kilgard)X1084(\(mjk@sgi.com\))X266 6144(July)N419(23,)X539(1997)X3794(Page)X3970(4)X10 f0 6428(h)N24(hhh)X4176(h)X4200(hhh)X4 p%%Trailerxtxs
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -