📄 fgldrawpixels.ps
字号:
1 f2828(pixels)X3055(are)X3190(read,)X3385(the)X3519(read)X3694(pointer)X3957(is)X554 5046(advanced)N882(to)X968(the)X1090(next)X1252(four-byte)X1575(boundary.)X1942(The)X2091(four-byte)X2414(row)X2564(alignment)X2909(is)X2987(speci\256ed)X3297(by)X3 f3402(fglPixelStore)X1 f3868(with)X554 5142(argument)N3 f883(GL_UNPACK_ALIGNMENT)X1 f(,)S1969(and)X2111(it)X2181(can)X2319(be)X2421(set)X2536(to)X2624(one,)X2786(two,)X2952(four,)X3131(or)X3223(eight)X3408(bytes.)X3642(Other)X3850(pixel)X554 5238(store)N730(parameters)X1103(specify)X1355(different)X1652(read)X1811(pointer)X2059(advancements,)X2555(both)X2718(before)X2945(the)X3064(\256rst)X3209(pixel)X3390(is)X3464(read)X3624(and)X3761(after)X3930(all)X2 f554 5334(width)N1 f751(pixels)X962(are)X1081(read.)X1280(See)X1416(the)X3 f554 5430(fglPixelStore)N1 f1015 0.4531(reference)AX1336(page)X1508(for)X1622(details)X1851(on)X1951(these)X2136(options.)X554 5564(The)N2 f701(width)X1 f878($times$)X2 f1131(height)X1 f1353(pixels)X1566(that)X1708(are)X1829(read)X1990(from)X2168(memory)X2457(are)X2579(each)X2750(operated)X3050(on)X3153(in)X3238(the)X3359(same)X3547(way,)X3724(based)X3930(on)X554 5660(the)N686(values)X925(of)X1026(several)X1288(parameters)X1675(speci\256ed)X1994(by)X3 f2108(fglPixelTransfer)X1 f2703(and)X3 f2853(fglPixelMap)X1 f3271(.)X3345(The)X3503(details)X3745(of)X3845(these)X554 5756(operations,)N928(as)X1015(well)X1173(as)X1260(the)X1378(target)X1581(buffer)X1798(into)X1942(which)X2158(the)X2277(pixels)X2489(are)X2609(drawn,)X2851(are)X2971(speci\256c)X3237(to)X3320(the)X3439(format)X3674(of)X3762(the)X3881(pix-)X554 5852(els,)N683(as)X770(speci\256ed)X1075(by)X2 f1175(format)X1 f1388(.)X2 f1448(format)X1 f1681(can)X1813(assume)X2069(one)X2205(of)X2292(eleven)X2522(symbolic)X2835(values:)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(LD)X410(DR)X464(RA)X514(AW)X568(WP)X638(PI)X680(IX)X706(XE)X760(EL)X806(LS)X852(S)X898(\()X900(\()X936(\))X938(\))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)X3314(F)X3316(FG)X3358(GL)X3412(LD)X3458(DR)X3512(RA)X3562(AW)X3616(WP)X3686(PI)X3728(IX)X3754(XE)X3808(EL)X3854(LS)X3900(S)X3946(\()X3948(\()X3984(\))X3986(\))X3 f10 s554 864(GL_COLOR_INDEX)N1 f954 960(Each)N1149(pixel)X1343(is)X1431(a)X1502(single)X1728(value,)X1957(a)X2028(color)X2228(index.)X2481(It)X2565(is)X2653(converted)X3005(to)X3102(\256xed-point)X3488(format,)X3757(with)X3934(an)X954 1056(unspeci\256ed)N1341(number)X1608(of)X1697(bits)X1834(to)X1918(the)X2038(right)X2211(of)X2300(the)X2420(binary)X2647(point,)X2853(regardless)X3201(of)X3290(the)X3409(memory)X3697(data)X3852(type.)X954 1152(Floating-point)N1438(values)X1670(convert)X1938(to)X2028(true)X2181(\256xed-point)X2560(values.)X2833(Signed)X3083(and)X3227(unsigned)X3544(integer)X3795(data)X3957(is)X954 1248(converted)N1291(with)X1453(all)X1553(fraction)X1823(bits)X1958(set)X2067(to)X2149(0.)X2249(Bitmap)X2504(data)X2658(convert)X2919(to)X3001(either)X3204(0)X3264(or)X3351(1.)X954 1382(Each)N1164(\256xed-point)X1564(index)X1791(is)X1893(then)X2080(shifted)X2347(left)X2503(by)X3 f2633(GL_INDEX_SHIFT)X1 f3375(bits)X3540(and)X3706(added)X3948(to)X3 f954 1478(GL_INDEX_OFFSET)N1 f1717(.)X1780(If)X3 f1857(GL_INDEX_SHIFT)X1 f2572(is)X2648(negative,)X2962(the)X3082(shift)X3246(is)X3321(to)X3405(the)X3525(right.)X3738(In)X3827(either)X954 1574(case,)N1133(zero)X1292(bits)X1427(\256ll)X1535(otherwise)X1867(unspeci\256ed)X2252(bit)X2356(locations)X2665(in)X2747(the)X2865(result.)X954 1708(If)N1032(the)X1154(GL)X1285(is)X1362(in)X1448(RGBA)X1694(mode,)X1916(the)X2038(resulting)X2342(index)X2544(is)X2621(converted)X2962(to)X3049(an)X3150(RGBA)X3397(pixel)X3582(with)X3749(the)X3872(help)X954 1804(of)N1340(the)X3 f1756(GL_PIXEL_MAP_I_TO_R)X1 f2702(,)X3 f3040(GL_PIXEL_MAP_I_TO_G)X1 f3990(,)X3 f954 1900(GL_PIXEL_MAP_I_TO_B)N1 f1895(,)X1944(and)X3 f2089(GL_PIXEL_MAP_I_TO_A)X1 f3064(tables.)X3321(If)X3405(the)X3533(GL)X3670(is)X3753(in)X3845(color)X954 1996(index)N1164(mode,)X1393(and)X1540(if)X3 f1620(GL_MAP_COLOR)X1 f2322(is)X2406(true,)X2582(the)X2711(index)X2920(is)X3004(replaced)X3308(with)X3481(the)X3610(value)X3815(that)X3966(it)X954 2092 0.3889(references)AN1315(in)X1406(lookup)X1658(table)X3 f1844(GL_PIXEL_MAP_I_TO_I)X1 f2763(.)X2833(Whether)X3140(the)X3268(lookup)X3520(replacement)X3943(of)X954 2188(the)N1075(index)X1276(is)X1352(done)X1531(or)X1621(not,)X1766(the)X1887(integer)X2133(part)X2281(of)X2371(the)X2492(index)X2693(is)X2769(then)X2930(ANDed)X3203(with)X3367($2)X3469(sup)X3602(b)X3664(-1$,)X3813(where)X954 2284($b$)N1094(is)X1167(the)X1285(number)X1550(of)X1637(bits)X1772(in)X1854(a)X1910(color)X2095(index)X2293(buffer.)X954 2418(The)N1112(GL)X1252(then)X1423(converts)X1728(the)X1859(resulting)X2172(indices)X2432(or)X2533(RGBA)X2789(colors)X3019(to)X3115(fragments)X3470(by)X3584(attaching)X3912(the)X954 2514(current)N1210(raster)X1417(position)X2 f1702(z)X1 f1761(coordinate)X2128(and)X2272(texture)X2523(coordinates)X2921(to)X3011(each)X3187(pixel,)X3395(then)X3561(assigning)X3890($x$)X954 2610(and)N1090($y$)X1230(window)X1508(coordinates)X1898(to)X1980(the)X2098($n$th)X2300(fragment)X2610(such)X2777(that)X1674 2802($x)N1774(sub)X1905(n)X1965(\304=\304)X2084(x)X2144(sub)X2275(r)X2322(\304+\304)X2441(n)X2501(\304)X2548(roman)X2773(mod)X2935(\304)X2982("width"$)X1816 2994($y)N1916(sub)X2047(n)X2107(\304=\304)X2226(y)X2286(sub)X2417(r)X2464(\304+\304)X10 f2583(Q)X1 f2623(\304)X2670(n)X2730(/)X2772("width")X3040(\304)X10 f3087(P)X1 f($)S954 3224(where)N1171(\($x)X1298(sub)X1429(r)X1476(,)X1516(y)X1576(sub)X1707(r$\))X1821(is)X1894(the)X2012(current)X2260(raster)X2459(position.)X2776(These)X2989(pixel)X3170(fragments)X3512(are)X3632(then)X3791(treated)X954 3320(just)N1097(like)X1245(the)X1371(fragments)X1720(generated)X2061(by)X2169(rasterizing)X2536(points,)X2779(lines,)X2978(or)X3073(polygons.)X3433(Texture)X3710(mapping,)X954 3416(fog,)N1106(and)X1247(all)X1352(the)X1475(fragment)X1790(operations)X2149(are)X2273(applied)X2534(before)X2765(the)X2888(fragments)X3234(are)X3358(written)X3610(to)X3698(the)X3822(frame)X954 3512(buffer.)N3 f554 3646(GL_STENCIL_INDEX)N1 f954 3742(Each)N1147(pixel)X1339(is)X1424(a)X1492(single)X1715(value,)X1941(a)X2009(stencil)X2250(index.)X2500(It)X2581(is)X2666(converted)X3015(to)X3109(\256xed-point)X3492(format,)X3759(with)X3934(an)X954 3838(unspeci\256ed)N1341(number)X1608(of)X1697(bits)X1834(to)X1918(the)X2038(right)X2211(of)X2300(the)X2420(binary)X2647(point,)X2853(regardless)X3201(of)X3290(the)X3409(memory)X3697(data)X3852(type.)X954 3934(Floating-point)N1438(values)X1670(convert)X1938(to)X2028(true)X2181(\256xed-point)X2560(values.)X2833(Signed)X3083(and)X3227(unsigned)X3544(integer)X3795(data)X3957(is)X954 4030(converted)N1291(with)X1453(all)X1553(fraction)X1823(bits)X1958(set)X2067(to)X2149(0.)X2249(Bitmap)X2504(data)X2658(convert)X2919(to)X3001(either)X3204(0)X3264(or)X3351(1.)X954 4164(Each)N1162(\256xed-point)X1560(index)X1785(is)X1886(then)X2072(shifted)X2338(left)X2493(by)X3 f2621(GL_INDEX_SHIFT)X1 f3361(bits,)X3544(and)X3708(added)X3948(to)X3 f954 4260(GL_INDEX_OFFSET)N1 f1717(.)X1780(If)X3 f1857(GL_INDEX_SHIFT)X1 f2572(is)X2648(negative,)X2962(the)X3082(shift)X3246(is)X3321(to)X3405(the)X3525(right.)X3738(In)X3827(either)X954 4356(case,)N1135(zero)X1296(bits)X1433(\256ll)X1543(otherwise)X1877(unspeci\256ed)X2264(bit)X2370(locations)X2682(in)X2767(the)X2888(result.)X3129(If)X3 f3206(GL_MAP_STENCIL)X1 f3957(is)X954 4452(true,)N1173(the)X1345(index)X1597(is)X1724(replaced)X2071(with)X2287(the)X2459(value)X2707(that)X2901(it)X3019 0.3889(references)AX3424(in)X3559(lookup)X3854(table)X3 f954 4548(GL_PIXEL_MAP_S_TO_S)N1 f1899(.)X1959(Whether)X2256(the)X2374(lookup)X2616(replacement)X3029(of)X3116(the)X3234(index)X3432(is)X3505(done)X3681(or)X3769(not,)X3912(the)X954 4644(integer)N1201(part)X1350(of)X1441(the)X1563(index)X1765(is)X1842(then)X2004(ANDed)X2277(with)X2442($2)X2545(sup)X2679(b)X2742(-1$,)X2892(where)X3112($b$)X3255(is)X3331(the)X3452(number)X3720(of)X3810(bits)X3948(in)X954 4740(the)N1076(stencil)X1310(buffer.)X1572(The)X1722(resulting)X2027(stencil)X2261(indices)X2513(are)X2637(then)X2800(written)X3052(to)X3139(the)X3262(stencil)X3496(buffer)X3718(such)X3890(that)X954 4836(the)N1072($n$th)X1274(index)X1472(is)X1545(written)X1792(to)X1874(location)X1618 4970($x)N1718(sub)X1849(n)X1909(\304=\304)X2028(x)X2088(sub)X2219(r)X2266(\304+\304)X2385(n)X2445(\304)X2492(roman)X2717(mod)X2879(\304)X2926("width"$)X1760 5162($y)N1860(sub)X1991(n)X2051(\304=\304)X2170(y)X2230(sub)X2361(r)X2408(\304+\304)X10 f2527(Q)X1 f2567(\304)X2614(n)X2674(/)X2716("width")X2984(\304)X10 f3031(P)X1 f($)S842 5392(where)N1060(\($x)X1188(sub)X1320(r)X1368(,)X1409(y)X1470(sub)X1602(r$\))X1717(is)X1791(the)X1910(current)X2159(raster)X2360(position.)X2679(Only)X2861(the)X2981(pixel)X3163(ownership)X3519(test,)X3672(the)X3792(scissor)X842 5488(test,)N993(and)X1129(the)X1247(stencil)X1476(writemask)X1830(affect)X2034(these)X2219(write)X2404(operations.)X3 f554 5622(GL_DEPTH_COMPONENT)N1 f842 5718(Each)N1032(pixel)X1221(is)X1303(a)X1368(single-depth)X1793(component.)X2218(Floating-point)X2704(data)X2867(is)X2949(converted)X3295(directly)X3569(to)X3660(an)X3765(internal)X842 5814(\257oating-point)N1310(format)X1557(with)X1732(unspeci\256ed)X2129(precision.)X2495(Signed)X2749(integer)X3004(data)X3170(is)X3255(mapped)X3541(linearly)X3818(to)X3912(the)X266 6144(July)N419(22,)X539(1997)X3794(Page)X3970(2)X3 p%%Page: 3 3
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -