📄 fglpixelstore.ps
字号:
3713($l$)X3837(is)X3912(the)X954 5776(number)N1226(of)X1320(pixels)X1538(in)X1627(a)X1690(row)X1842(\()X3 f1869(GL_PACK_ROW_LENGTH)X1 f2899(if)X2975(it)X3045(is)X3124(greater)X3374(than)X3538(0,)X3624(the)X3748($width$)X266 6144(Page)N442(1)X3577(July)X3730(22,)X3850(1997)X2 p%%Page: 2 210 s 0 xH 0 xS 1 f10 f0 96(h)N24(hhh)X4176(h)X4200(hhh)X9 s1 f266 480(F)N268(FG)X310(GL)X364(LP)X410(PI)X452(IX)X478(XE)X532(EL)X578(LS)X624(ST)X666(TO)X712(OR)X766(RE)X816(E)X866(\()X868(\()X904(\))X906(\))X1885(U)X1887(UN)X1941(NI)X1995(IX)X2021(X)X2093(S)X2095(Sy)X2137(ys)X2175(st)X2205(te)X2227(em)X2261(m)X2337(V)X2339(V)X3346(F)X3348(FG)X3390(GL)X3444(LP)X3490(PI)X3532(IX)X3558(XE)X3612(EL)X3658(LS)X3704(ST)X3746(TO)X3792(OR)X3846(RE)X3896(E)X3946(\()X3948(\()X3984(\))X3986(\))X10 s954 864(argument)N1280(to)X1365(the)X1486(pixel)X1669(routine)X1919(otherwise\),)X2301($a$)X2440(is)X2516(the)X2637(value)X2835(of)X3 f2926(GL_PACK_ALIGNMENT)X1 f3850(,)X3894(and)X954 960($s$)N1087(is)X1162(the)X1282(size,)X1449(in)X1533(bytes,)X1744(of)X1833(a)X1891(single)X2104(component)X2482(\(if)X2580($)X2642(a)X2700(<)X2767(s$,)X2880(then)X3040(it)X3106(is)X3181(as)X3270(if)X3341($a)X3439(=)X3505(s$\).)X3664(In)X3752(the)X3871(case)X954 1056(of)N1041(1-bit)X1212(values,)X1457(the)X1575(location)X1853(of)X1940(the)X2058(next)X2216(row)X2361(is)X2434(obtained)X2730(by)X2830(skipping)X1611 1248($k)N1711(\304=\304)X1830(8)X1890(a)X1946(left)X2073(ceiling)X2311({)X2369(n)X2429(l)X2471(})X2529(over)X2692({)X2750(8)X2810(a)X2866(})X2924(right)X3095(ceiling$)X954 1440(components)N1361(or)X1448(indices.)X954 1574(The)N1104(word)X2 f1294(component)X1 f1671(in)X1758(this)X1899(description)X2281(refers)X2491(to)X2579(the)X2703(nonindex)X3027(values)X3258(red,)X3407(green,)X3632(blue,)X3816(alpha,)X954 1670(and)N1095(depth.)X1338(Storage)X1608(format)X3 f1847(GL_RGB)X1 f2175(,)X2220(for)X2339(example,)X2656(has)X2788(three)X2974(components)X3386(per)X3513(pixel:)X3739(\256rst)X3887(red,)X954 1766(then)N1112(green,)X1331(and)X1467(\256nally)X1691(blue.)X3 f554 1900(GL_PACK_SKIP_PIXELS)N1 f1510(and)X3 f1646(GL_PACK_SKIP_ROWS)X1 f954 1996(These)N1170(values)X1399(are)X1522(provided)X1831(as)X1922(a)X1982(convenience)X2409(to)X2496(the)X2619(programmer;)X3063(they)X3226(provide)X3496(no)X3601(functionality)X954 2092(that)N1096(cannot)X1332(be)X1430(duplicated)X1786(simply)X2025(by)X2127(incrementing)X2571(the)X2690(pointer)X2938(passed)X3173(to)X3 f3256(fglReadPixels)X1 f3723(.)X3784(Setting)X3 f954 2188(GL_PACK_SKIP_PIXELS)N1 f1921(to)X2014($i$)X2147(is)X2231(equivalent)X2596(to)X2689(incrementing)X3143(the)X3272(pointer)X3530(by)X3641($i)X3734(n$)X3845(com-)X954 2284(ponents)N1230(or)X1324(indices,)X1598(where)X1822($n$)X1969(is)X2049(the)X2173(number)X2444(of)X2537(components)X2950(or)X3043(indices)X3296(in)X3384(each)X3558(pixel.)X3784(Setting)X3 f954 2380(GL_PACK_SKIP_ROWS)N1 f1880(to)X1976($j$)X2112(is)X2199(equivalent)X2568(to)X2665(incrementing)X3123(the)X3256(pointer)X3518(by)X3633($j)X3730(k$)X3845(com-)X954 2476(ponents)N1231(or)X1326(indices,)X1601(where)X1826($k$)X1974(is)X2054(the)X2179(number)X2451(of)X2545(components)X2959(or)X3053(indices)X3307(per)X3437(row,)X3609(as)X3703(just)X3845(com-)X954 2572(puted)N1152(in)X1234(the)X3 f1352(GL_PACK_ROW_LENGTH)X1 f2375(section.)X3 f554 2706(GL_PACK_ALIGNMENT)N1 f954 2802(Speci\256es)N1264(the)X1383(alignment)X1724(requirements)X2164(for)X2279(the)X2398(start)X2557(of)X2645(each)X2814(pixel)X2995(row)X3141(in)X3224(memory.)X3552(The)X3698(allowable)X954 2898(values)N1186(are)X1312(1)X1379(\(byte-alignment\),)X1965(2)X2031(\(rows)X2240(aligned)X2502(to)X2590(even-numbered)X3116(bytes\),)X3358(4)X3424(\(word-alignment\),)X954 2994(and)N1090(8)X1150(\(rows)X1353(start)X1511(on)X1611(double-word)X2041(boundaries\).)X554 3128(The)N706(other)X898(six)X1018(of)X1112(the)X1237(twelve)X1478(storage)X1737(parameters)X2117(affect)X2329(how)X2495(pixel)X2683(data)X2845(is)X2926(read)X3093(from)X3277(client)X3483(memory.)X3818(These)X554 3224(values)N823(are)X985(signi\256cant)X1381(for)X3 f1538(fglDrawPixels)X1 f2019(,)X3 f2102(fglTexImage1D)X1 f2632(,)X3 f2715(fglTexImage2D)X1 f3245(,)X3 f3328(fglTexSubImage1D)X1 f3990(,)X3 f554 3320(fglTexSubImage2D)N1 f1216(,)X3 f1256(fglBitmap)X1 f1598(,)X1638(and)X3 f554 3416(fglPolygonStipple)N1 f1157(.)X1217(They)X1402(are)X1521(as)X1608(follows:)X3 f554 3550(GL_UNPACK_SWAP_BYTES)N1 f842 3646(If)N920(true,)X1089(byte)X1251(ordering)X1547(for)X1665(multibyte)X1995(color)X2184(components,)X2615(depth)X2817(components,)X3248(color)X3437(indices,)X3709(or)X3801(stencil)X842 3742(indices)N1095(is)X1174(reversed.)X1513(That)X1686(is,)X1785(if)X1860(a)X1922(four-byte)X2247(component)X2629(consists)X2908(of)X3001(bytes)X3196($b)X3302(sub)X3439(0$,)X3564($b)X3669(sub)X3805(1$,)X3930($b)X842 3838(sub)N983(2$,)X1114($b)X1225(sub)X1367(3$,)X1498(it)X1573(is)X1657(taken)X1862(from)X2049(memory)X2347(as)X2445($b)X2556(sub)X2698(3$,)X2829($b)X2940(sub)X3082(2$,)X3213($b)X3324(sub)X3466(1$,)X3597($b)X3708(sub)X3850(0$)X3961(if)X3 f842 3934(GL_UNPACK_SWAP_BYTES)N1 f1945(is)X2031(true.)X3 f2229(GL_UNPACK_SWAP_BYTES)X1 f3332(has)X3472(no)X3584(effect)X3800(on)X3912(the)X842 4030(memory)N1140(order)X1341(of)X1439(components)X1857(within)X2092(a)X2159(pixel,)X2370(only)X2544(on)X2656(the)X2786(order)X2988(of)X3087(bytes)X3288(within)X3524(components)X3943(or)X842 4126(indices.)N1137(For)X1276(example,)X1596(the)X1722(three)X1911(components)X2326(of)X2421(a)X3 f2485(GL_RGB)X1 f2841(format)X3082(pixel)X3269(are)X3395(always)X3645(stored)X3868(with)X842 4222(red)N965(\256rst,)X1129(green)X1328(second,)X1591(and)X1727(blue)X1885(third,)X2076(regardless)X2422(of)X2509(the)X2627(value)X2821(of)X3 f2908(GL_UNPACK_SWAP_BYTES)X1 f3978(.)X3 f554 4356(GL_UNPACK_LSB_FIRST)N1 f842 4452(If)N919(true,)X1087(bits)X1225(are)X1347(ordered)X1616(within)X1843(a)X1902(byte)X2063(from)X2242(least)X2412(signi\256cant)X2768(to)X2853(most)X3031(signi\256cant;)X3409(otherwise,)X3764(the)X3886(\256rst)X842 4548(bit)N946(in)X1028(each)X1196(byte)X1354(is)X1427(the)X1545(most)X1720(signi\256cant)X2073(one.)X2249(This)X2411(is)X2484(relevant)X2763(only)X2925(for)X3039(bitmap)X3281(data.)X3 f554 4682(GL_UNPACK_ROW_LENGTH)N1 f842 4778(If)N919(greater)X1166(than)X1327(0,)X3 f1410(GL_UNPACK_ROW_LENGTH)X1 f2552(de\256nes)X2802(the)X2924(number)X3193(of)X3284(pixels)X3499(in)X3585(a)X3645(row.)X3834(If)X3912(the)X842 4874(\256rst)N991(pixel)X1176(of)X1268(a)X1329(row)X1479(is)X1557(placed)X1792(at)X1875(location)X2158($p$)X2303(in)X2390(memory,)X2702(then)X2865(the)X2988(location)X3271(of)X3363(the)X3486(\256rst)X3635(pixel)X3820(of)X3912(the)X842 4970(next)N1000(row)X1145(is)X1218(obtained)X1514(by)X1614(skipping)X842 5162($k)N942(\304=\304)X1061(left)X1208({)X1266(lpile)X1428({)X1486(n)X1546(l)X1588(above)X1800({a)X1894(over)X2057(s)X2108(left)X2235(ceiling)X2473({)X2531(s)X2582(n)X2642(l)X2684(})X2742(over)X2905(a)X2961(right)X3132(ceiling}})X3446(\304\304)X3520(lpile)X3682({s)X3791(>=)X3921(a)X3977(above)X4189(s)X4260(<)X4345(a)X4401(}$)X842 5354(components)N1256(or)X1351(indices,)X1626(where)X1851($n$)X1999(is)X2080(the)X2206(number)X2479(of)X2574(components)X2989(or)X3084(indices)X3339(in)X3429(a)X3493(pixel,)X3701($l$)X3831(is)X3912(the)X842 5450(number)N1114(of)X1208(pixels)X1426(in)X1515(a)X1577(row)X1728(\()X3 f1755(GL_UNPACK_ROW_LENGTH)X1 f2900(if)X2975(it)X3045(is)X3124(greater)X3374(than)X3538(0,)X3624(the)X3748($width$)X842 5546(argument)N1167(to)X1252(the)X1373(pixel)X1556(routine)X1806(otherwise\),)X2188($a$)X2327(is)X2403(the)X2524(value)X2721(of)X3 f2811(GL_UNPACK_ALIGNMENT)X1 f(,)S3894(and)X842 5642($s$)N976(is)X1052(the)X1173(size,)X1341(in)X1426(bytes,)X1638(of)X1728(a)X1787(single)X2001(component)X2380(\(if)X2479($)X2542(a)X2601(<)X2669(s$,)X2783(then)X2944(it)X3011(is)X3087(as)X3177(if)X3248($a)X3346(=)X3413(s$\).)X3573(In)X3662(the)X3782(case)X3943(of)X842 5738(1-bit)N1013(values,)X1258(the)X1376(location)X1654(of)X1741(the)X1859(next)X2017(row)X2162(is)X2235(obtained)X2531(by)X2631(skipping)X266 6144(July)N419(22,)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(F)N268(FG)X310(GL)X364(LP)X410(PI)X452(IX)X478(XE)X532(EL)X578(LS)X624(ST)X666(TO)X712(OR)X766(RE)X816(E)X866(\()X868(\()X904(\))X906(\))X1885(U)X1887(UN)X1941(NI)X1995(IX)X2021(X)X2093(S)X2095(Sy)X2137(ys)X2175(st)X2205(te)X2227(em)X2261(m)X2337(V)X2339(V)X3346(F)X3348(FG)X3390(GL)X3444(LP)X3490(PI)X3532(IX)X3558(XE)X3612(EL)X3658(LS)X3704(ST)X3746(TO)X3792(OR)X3846(RE)X3896(E)X3946(\()X3948(\()X3984(\))X3986(\))X10 s1555 864($k)N1655(\304=\304)X1774(8)X1834(a)X1890(left)X2017(ceiling)X2255({)X2313(n)X2373(l)X2415(})X2473(over)X2636({)X2694(8)X2754(a)X2810(})X2868(right)X3039(ceiling$)X842 1056(components)N1249(or)X1336(indices.)X842 1190(The)N990(word)X2 f1178(component)X1 f1553(in)X1638(this)X1777(description)X2157(refers)X2365(to)X2451(the)X2573(nonindex)X2895(values)X3124(red,)X3271(green,)X3494(blue,)X3676(alpha,)X3894(and)X842 1286(depth.)N1092(Storage)X1369(format)X3 f1615(GL_RGB)X1 f1943(,)X1995(for)X2121(example,)X2445(has)X2584(three)X2777(components)X3196(per)X3330(pixel:)X3563(\256rst)X3718(red,)X3872(then)X842 1382(green,)N1061(and)X1197(\256nally)X1421(blue.)X3 f554 1516(GL_UNPACK_SKIP_PIXELS)N1 f1626(and)X3 f1762(GL_UNPACK_SKIP_ROWS)X1 f842 1612(These)N1056(values)X1283(are)X1404(provided)X1711(as)X1800(a)X1858(convenience)X2282(to)X2366(the)X2486(programmer;)X2927(they)X3087(provide)X3355(no)X3458(functionality)X3890(that)X842 1708(cannot)N1095(be)X1210(duplicated)X
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -