📄 fglpixeltransfer.ps
字号:
2411(pixel)X2591(types)X2780(are)X2899(as)X2986(follows:)X554 4682(Color)N1034(Each)X1219(of)X1310(the)X1432(four)X1590(color)X1779(components)X2190(is)X2267(multiplied)X2619(by)X2723(a)X2783(scale)X2969(factor,)X3202(then)X3365(added)X3582(to)X3669(a)X3730(bias)X3884(fac-)X1034 4778(tor.)N1211(That)X1406(is,)X1527(the)X1672(red)X1822(component)X2225(is)X2325(multiplied)X2700(by)X3 f2827(GL_RED_SCALE)X1 f3457(,)X3524(then)X3709(added)X3948(to)X3 f1034 4874(GL_RED_BIAS)N1 f1584(;)X1629(the)X1751(green)X1954(component)X2334(is)X2411(multiplied)X2763(by)X3 f2867(GL_GREEN_SCALE)X1 f3612(,)X3656(then)X3818(added)X1034 4970(to)N3 f1134(GL_GREEN_BIAS)X1 f1799(;)X1859(the)X1995(blue)X2171(component)X2565(is)X2655(multiplied)X3020(by)X3 f3137(GL_BLUE_SCALE)X1 f3815(,)X3872(then)X1034 5066(added)N1325(to)X3 f1486(GL_BLUE_BIAS)X1 f2084(;)X2205(and)X2421(the)X2619(alpha)X2893(component)X3349(is)X3502(multiplied)X3930(by)X3 f1034 5162(GL_ALPHA_SCALE)N1 f1775(,)X1816(then)X1975(added)X2188(to)X3 f2271(GL_ALPHA_BIAS)X1 f2932(.)X2993(After)X3184(all)X3284(four)X3438(color)X3623(components)X1034 5258(are)N1158(scaled)X1384(and)X1525(biased,)X1775(each)X1948(is)X2027(clamped)X2325(to)X2413(the)X2537(range)X2742([0,1].)X2962(All)X3090(color,)X3301(scale,)X3508(and)X3650(bias)X3805(values)X1034 5354(are)N1153(speci\256ed)X1458(with)X3 f1620(fglPixelTransfer)X1 f2181(.)X1034 5488(If)N3 f1138(GL_MAP_COLOR)X1 f1860(is)X1964(true,)X2160(each)X2359(color)X2575(component)X2982(is)X3086(scaled)X3338(by)X3469(the)X3618(size)X3794(of)X3912(the)X1034 5584(corresponding)N1517(color-to-color)X1986(map,)X2167(then)X2328(replaced)X2624(by)X2727(the)X2848(contents)X3138(of)X3228(that)X3371(map)X3532(indexed)X3809(by)X3912(the)X1034 5680(scaled)N1375(component.)X1912(That)X2200(is,)X2414(the)X2653(red)X2897(component)X3394(is)X3588(scaled)X3930(by)X3 f1034 5776(GL_PIXEL_MAP_R_TO_R_SIZE)N1 f2228(,)X2388(then)X2666(replaced)X3079(by)X3299(the)X3537(contents)X3943(of)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(LT)X624(TR)X670(RA)X720(AN)X774(NS)X828(SF)X870(FE)X912(ER)X958(R)X1012(\()X1014(\()X1050(\))X1052(\))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)X3200(F)X3202(FG)X3244(GL)X3298(LP)X3344(PI)X3386(IX)X3412(XE)X3466(EL)X3512(LT)X3558(TR)X3604(RA)X3654(AN)X3708(NS)X3762(SF)X3804(FE)X3846(ER)X3892(R)X3946(\()X3948(\()X3984(\))X3986(\))X3 f10 s1034 864(GL_PIXEL_MAP_R_TO_R)N1 f2059(indexed)X2365(by)X2498(itself.)X2751(The)X2929(green)X3161(component)X3570(is)X3676(scaled)X3930(by)X3 f1034 960(GL_PIXEL_MAP_G_TO_G_SIZE)N1 f2236(,)X2395(then)X2672(replaced)X3084(by)X3302(the)X3538(contents)X3943(of)X3 f1034 1056(GL_PIXEL_MAP_G_TO_G)N1 f2071(indexed)X2381(by)X2517(itself.)X2773(The)X2954(blue)X3149(component)X3562(is)X3672(scaled)X3930(by)X3 f1034 1152(GL_PIXEL_MAP_B_TO_B_SIZE)N1 f2218(,)X2380(then)X2660(replaced)X3075(by)X3296(the)X3535(contents)X3943(of)X3 f1034 1248(GL_PIXEL_MAP_B_TO_B)N1 f2034(indexed)X2326(by)X2444(itself.)X2682(And)X2858(the)X2994(alpha)X3206(component)X3600(is)X3691(scaled)X3930(by)X3 f1034 1344(GL_PIXEL_MAP_A_TO_A_SIZE)N1 f2228(,)X2388(then)X2666(replaced)X3079(by)X3299(the)X3537(contents)X3943(of)X3 f1034 1440(GL_PIXEL_MAP_A_TO_A)N1 f2035(indexed)X2317(by)X2425(itself.)X2653(All)X2783(components)X3198(taken)X3401(from)X3586(the)X3713(maps)X3911(are)X1034 1536(then)N1203(clamped)X1505(to)X1597(the)X1725(range)X1934([0,1].)X3 f2158(GL_MAP_COLOR)X1 f2859(is)X2942(speci\256ed)X3257(with)X3 f3429(fglPixelTransfer)X1 f3990(.)X1034 1632(The)N1179(contents)X1466(of)X1553(the)X1671(various)X1927(maps)X2116(are)X2235(speci\256ed)X2540(with)X3 f2702(fglPixelMap)X1 f3120(.)X554 1766(Color)N756(index)X1034(Each)X1217(color)X1404(index)X1604(is)X1679(shifted)X1919(left)X2048(by)X3 f2150(GL_INDEX_SHIFT)X1 f2864(bits;)X3023(any)X3161(bits)X3298(beyond)X3556(the)X3676(number)X3943(of)X1034 1862(fraction)N1305(bits)X1441(carried)X1686(by)X1787(the)X1906(\256xed-point)X2278(index)X2476(are)X2595(\256lled)X2779(with)X2941(zeros.)X3171(If)X3 f3245(GL_INDEX_SHIFT)X1 f3957(is)X1034 1958(negative,)N1348(the)X1468(shift)X1632(is)X1707(to)X1791(the)X1911(right,)X2104(again)X2300(zero)X2461(\256lled.)X2687(Then)X3 f2874(GL_INDEX_OFFSET)X1 f3659(is)X3734(added)X3948(to)X1034 2054(the)N1152(index.)X3 f1390(GL_INDEX_SHIFT)X1 f2102(and)X3 f2238(GL_INDEX_OFFSET)X1 f3021(are)X3140(speci\256ed)X3445(with)X3 f1034 2150(fglPixelTransfer)N1 f1595(.)X1034 2284(From)N1228(this)X1364(point,)X1569(operation)X1893(diverges)X2186(depending)X2541(on)X2642(the)X2762(required)X3052(format)X3288(of)X3377(the)X3497(resulting)X3799(pixels.)X1034 2380(If)N1110(the)X1230(resulting)X1532(pixels)X1745(are)X1866(to)X1950(be)X2048(written)X2297(to)X2381(a)X2439(color)X2625(index)X2824(buffer,)X3062(or)X3150(if)X3220(they)X3379(are)X3499(being)X3698(read)X3858(back)X1034 2476(to)N1132(client)X1346(memory)X1649(in)X3 f1747(GL_COLOR_INDEX)X1 f2529(format,)X2799(the)X2934(pixels)X3162(continue)X3475(to)X3574(be)X3687(treated)X3943(as)X1034 2572(indices.)N1324(If)X3 f1400(GL_MAP_COLOR)X1 f2093(is)X2168(true,)X2335(each)X2505(index)X2705(is)X2780(masked)X3047(by)X3149($2)X3251(sup)X3384(n)X3446(\304-\304)X3549(1$,)X3671(where)X3890($n$)X1034 2668(is)N3 f1207(GL_PIXEL_MAP_I_TO_I_SIZE)X1 f2347(,)X2487(then)X2745(replaced)X3138(by)X3338(the)X3556(contents)X3943(of)X3 f1034 2764(GL_PIXEL_MAP_I_TO_I)N1 f2017(indexed)X2334(by)X2477(the)X2638(masked)X2946(value.)X3 f3223(GL_MAP_COLOR)X1 f3957(is)X1034 2860(speci\256ed)N1344(with)X3 f1511(fglPixelTransfer)X1 f2072(.)X2138(The)X2289(contents)X2582(of)X2675(the)X2799(index)X3003(map)X3167(is)X3246(speci\256ed)X3557(with)X3 f3725(fglPixel-)X1034 2956(Map)N1 f(.)S1034 3090(If)N1111(the)X1232(resulting)X1535(pixels)X1749(are)X1871(to)X1956(be)X2055(written)X2305(to)X2390(an)X2489(RGBA)X2734(color)X2922(buffer,)X3162(or)X3252(if)X3324(they)X3486(are)X3609(read)X3772(back)X3948(to)X1034 3186(client)N1237(memory)X1528(in)X1614(a)X1674(format)X1912(other)X2101(than)X3 f2263(GL_COLOR_INDEX)X1 f3009(,)X3053(the)X3175(pixels)X3390(are)X3513(converted)X3854(from)X1034 3282(indices)N1345(to)X1491(colors)X1771(by)X1936(referencing)X2388(the)X2571(four)X2790(maps)X3 f3044(GL_PIXEL_MAP_I_TO_R)X1 f3990(,)X3 f1034 3378(GL_PIXEL_MAP_I_TO_G)N1 f1984(,)X3 f2469(GL_PIXEL_MAP_I_TO_B)X1 f3410(,)X3894(and)X3 f1034 3474(GL_PIXEL_MAP_I_TO_A)N1 f1980(.)X2044(Before)X2287(being)X2489 0.3438(dereferenced,)AX2950(the)X3073(index)X3276(is)X3354(masked)X3624(by)X3729($2)X3834(sup)X3970(n)X1034 3570(\304-\304)N1205(1$,)X1395(where)X1682($n$)X1892(is)X3 f2034(GL_PIXEL_MAP_I_TO_R_SIZE)X1 f3290(for)X3473(the)X3660(red)X3852(map,)X3 f1034 3666(GL_PIXEL_MAP_I_TO_G_SIZE)N1 f2227(for)X2344(the)X2465(green)X2667(map,)X3 f2848(GL_PIXEL_MAP_I_TO_B_SIZE)X1 f1034 3762(for)N1164(the)X1298(blue)X1472(map,)X1666(and)X3 f1818(GL_PIXEL_MAP_I_TO_A_SIZE)X1 f3021(for)X3151(the)X3285(alpha)X3495(map.)X3708(All)X3845(com-)X1034 3858(ponents)N1307(taken)X1505(from)X1685(the)X1808(maps)X2002(are)X2126(then)X2289(clamped)X2586(to)X2673(the)X2796(range)X3000([0,1].)X3219(The)X3369(contents)X3661(of)X3753(the)X3876(four)X1034 3954(maps)N1223(is)X1296(speci\256ed)X1601(with)X3 f1763(fglPixelMap)X1 f2181(.)X554 4088(Depth)N1034(Each)X1230(depth)X1443(value)X1652(is)X1740(multiplied)X2103(by)X3 f2218(GL_DEPTH_SCALE)X1 f2954(,)X3009(added)X3236(to)X3 f3334(GL_DEPTH_BIAS)X1 f3990(,)X1034 4184(then)N1192(clamped)X1484(to)X1566(the)X1684(range)X1883([0,1].)X554 4318(Stencil)N1034(Each)X1233(index)X1449(is)X1540(shifted)X3 f1796(GL_INDEX_SHIFT)X1 f2526(bits)X2679(just)X2832(as)X2937(a)X3011(color)X3214(index)X3430(is,)X3541(then)X3717(added)X3948(to)X3 f1034 4414(GL_INDEX_OFFSET)N1 f1797(.)X1859(If)X3 f1935(GL_MAP_STENCIL)X1 f2685(is)X2760(true,)X2927(each)X3097(index)X3296(is)X3370(masked)X3636(by)X3737($2)X3838(sup)X3970(n)X1034 4510(\304-\304)N1143(1$,)X1271(where)X1496($n$)X1645(is)X3 f1727 -0.1413(GL_PIXEL_MAP_S_TO_S_SIZE)AX1 f2893(,)X2942(then)X3109(replaced)X3411(by)X3520(the)X3647(contents)X3943(of)X3 f1034 4606(GL_PIXEL_MAP_S_TO_S)N1 f1999(indexed)X2273(by)X2373(the)X2491(masked)X2756(value.)X554 4740(The)N707(following)X1046(table)X1230(gives)X1428(the)X1555(type,)X1742(initial)X1957(value,)X2180(and)X2325(range)X2533(of)X2629(valid)X2818(values)X3052(for)X3175(each)X3352(of)X3448(the)X3575(pixel)X3764(transfer)X554 4836(parameters)N927(that)X1067(are)X1186(set)X1295(with)X3 f1457(fglPixelTransfer)X1 f2018(.)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(LT)X624(TR)X670(RA)X720(AN)X774(NS)X828(SF)X870(FE)X912(ER)X958(R)X1012(\()X1014(\()X1050(\))X1052(\))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)X
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -