📄 glutdisplayfunc.ps
字号:
2915(GLUT)X3150(determines)X3523(that)X3664(the)X3783(normal)X554 1746(plane)N757(for)X880(the)X1007(window)X1294(needs)X1506(to)X1597(be)X1702(redisplayed,)X2121(the)X2248(display)X2508(callback)X2805(for)X2928(the)X3055(window)X3342(is)X3424(called.)X3665(Before)X3912(the)X554 1842(callback,)N862(the)X980(current)X1228(window)X1507(is)X1581(set)X1691(to)X1774(the)X1893(window)X2172(needing)X2447(to)X2530(be)X2627(redisplayed)X3018(and)X3155(\(if)X3252(no)X3353(overlay)X3615(display)X3867(call-)X554 1938(back)N727(is)X800(registered\))X1164(the)X1282(layer)X1463(in)X1545(use)X1672(is)X1745(set)X1854(to)X1936(the)X2054(normal)X2301(plane.)X2515(The)X2660(display)X2911(callback)X3199(is)X3272(called)X3484(with)X3646(no)X3746(parame-)X554 2034(ters.)N714(The)X863(entire)X1070(normal)X1321(plane)X1519(region)X1748(should)X1985(be)X2085(redisplayed)X2479(in)X2565(response)X2870(to)X2956(the)X3078(callback)X3370(\(this)X3536(includes)X3827(ancil-)X554 2130(lary)N699(buffers)X947(if)X1016(your)X1183(program)X1475(depends)X1758(on)X1858(their)X2025(state\).)X554 2322(GLUT)N796(determines)X1176(when)X1378(the)X1504(display)X1764(callback)X2061(should)X2303(be)X2408(triggered)X2727(based)X2939(on)X3048(the)X3175(window's)X3520(redisplay)X3843(state.)X554 2418(The)N706(redisplay)X1026(state)X1199(for)X1319(a)X1381(window)X1665(can)X1803(be)X1905(either)X2114(set)X2229(explicitly)X2557(by)X2663(calling)X2907(glutPostRedisplay)X3514(or)X3607(implicitly)X3943(as)X554 2514(the)N674(result)X874(of)X963(window)X1243(damage)X1515(reported)X1806(by)X1909(the)X2030(window)X2311(system.)X2576(Multiple)X2874(posted)X3106(redisplays)X3454(for)X3571(a)X3630(window)X3911(are)X554 2610(coalesced)N887(by)X987(GLUT)X1221(to)X1303(minimize)X1625(the)X1743(number)X2008(of)X2095(display)X2346(callbacks)X2665(called.)X554 2802(When)N780(an)X891(overlay)X1167(is)X1255(established)X1646(for)X1775(a)X1846(window,)X2159(but)X2296(there)X2492(is)X2580(no)X2695(overlay)X2971(display)X3237(callback)X3540(registered,)X3912(the)X554 2898(display)N806(callback)X1094(is)X1167(used)X1334(for)X1448(redisplaying)X1864(both)X2026(the)X2144(overlay)X2405(and)X2541(normal)X2788(plane)X2982(\(that)X3149(is,)X3242(it)X3306(will)X3450(be)X3546(called)X3758(if)X3827(either)X554 2994(the)N677(redisplay)X996(state)X1168(or)X1260(overlay)X1526(redisplay)X1845(state)X2017(is)X2095(set\).)X2256(In)X2348(this)X2488(case,)X2672(the)X2795(layer)X2981(in)X3068(use)X3200(is)X3278(not)X3406(implicitly)X3742(changed)X554 3090(on)N654(entry)X839(to)X921(the)X1039(display)X1290(callback.)X554 3282(See)N699(glutOverlayDisplayFunc)X1520(to)X1611(understand)X1992(how)X2159(distinct)X2423(callbacks)X2751(for)X2874(the)X3001(overlay)X3271(and)X3416(normal)X3673(plane)X3877(of)X3974(a)X554 3378(window)N832(may)X990(be)X1086(established.)X554 3570(When)N773(a)X836(window)X1121(is)X1201(created,)X1481(no)X1589(display)X1848(callback)X2144(exists)X2354(for)X2476(the)X2602(window.)X2908(It)X2985(is)X3066(the)X3192(responsibility)X3655(of)X3750(the)X3876(pro-)X554 3666(grammer)N866(to)X950(install)X1167(a)X1225(display)X1478(callback)X1768(for)X1884(the)X2004(window)X2284(before)X2512(the)X2632(window)X2911(is)X2985(shown.)X3235(A)X3314(display)X3566(callback)X3855(must)X554 3762(be)N659(registered)X1005(for)X1129(any)X1275(window)X1563(that)X1713(is)X1796(shown.)X2055(If)X2139(a)X2205(window)X2493(becomes)X2804(displayed)X3141(without)X3415(a)X3481(display)X3742(callback)X554 3858(being)N755(registered,)X1115(a)X1174(fatal)X1340(error)X1520(occurs.)X1773(Passing)X2040(NULL)X2277(to)X2362(glutDisplayFunc)X2918(is)X2994(illegal)X3216(as)X3305(of)X3394(GLUT)X3630(3.0;)X3774(there)X3957(is)X554 3954(no)N654(way)X808(to)X890 0.2404(``deregister'')AX1335(a)X1391(display)X1642(callback)X1930(\(though)X2199(another)X2460(callback)X2748(routine)X2995(can)X3127(always)X3370(be)X3466(registered\).)X554 4146(Upon)N767(return)X994(from)X1185(the)X1318(display)X1584(callback,)X1908(the)X2042(normal)X2305(damaged)X2631(state)X2814(of)X2917(the)X3051(window)X3345(\(returned)X3676(by)X3792(calling)X554 4242 0.1445(glutLayerGet\(GLUT_NORMAL_DAMAGED\))AN2109(is)X2184(cleared.)X2458(If)X2533(there)X2715(is)X2789(no)X2890(overlay)X3152(display)X3404(callback)X3693(registered)X554 4338(the)N836(overlay)X1262(damaged)X1737(state)X2069(of)X2321(the)X2604(window)X3047(\(returned)X3527(by)X3792(calling)X554 4434 0.1553(glutLayerGet\(GLUT_OVERLAY_DAMAGED\))AN2143(is)X2216(also)X2365(cleared.)X9 s266 4568(S)N268(SE)X310(EE)X356(E)X432(A)X434(AL)X488(LS)X534(SO)X576(O)X10 s554 4664(glutCreateMenu,)N1115(glutPostRedisplay,)X1736(glutOverlayDisplayFunc)X9 s266 4798(A)N268(AU)X322(UT)X376(TH)X422(HO)X476(OR)X530(R)X10 s554 4894(Mark)N748(J.)X819(Kilgard)X1084(\(mjk@sgi.com\))X266 6144(Page)N442(1)X3577(July)X3730(23,)X3850(1997)X10 f0 6428(h)N24(hhh)X4176(h)X4200(hhh)X1 p%%Trailerxtxs
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -