📄 fglcopypixels.ps
字号:
3309(unspeci\256ed)X3696(precision.)X1154 1056(The)N1304(conversion)X1682(maps)X1877(the)X2001(largest)X2241(representable)X2696(component)X3078(value)X3278(to)X3366(1.0,)X3512(and)X3654(component)X1154 1152(value)N1377(0)X1466(to)X1577(0.0.)X1766(The)X1940(resulting)X2269(\257oating-point)X2753(color)X2967(values)X3221(are)X3368(then)X3554(multiplied)X3930(by)X3 f1154 1248(GL_c_SCALE)N1 f1692(and)X1849(added)X2082(to)X3 f2185(GL_c_BIAS)X1 f2602(,)X2663(where)X2 f2901(c)X1 f2978(is)X3072(RED,)X3294(GREEN,)X3623(BLUE,)X3894(and)X1154 1344(ALPHA)N1442(for)X1556(the)X1674(respective)X2020(color)X2205(components.)X2652(The)X2797(results)X3026(are)X3145(clamped)X3437(to)X3519(the)X3637(range)X3836([0,1].)X1154 1440(If)N3 f1240(GL_MAP_COLOR)X1 f1943(is)X2028(true,)X2205(each)X2385(color)X2582(component)X2970(is)X3055(scaled)X3288(by)X3400(the)X3530(size)X3688(of)X3788(lookup)X1154 1536(table)N3 f1339(GL_PIXEL_MAP_c_TO_c)X1 f2268(,)X2317(then)X2483(replaced)X2784(by)X2892(the)X3018(value)X3220(that)X3368(it)X3440 0.3889(references)AX3800(in)X3890(that)X1154 1632(table.)N2 f1370(c)X1 f1426(is)X1499(R,)X1592(G,)X1690(B,)X1783(or)X1870(A.)X1154 1766(The)N1307(GL)X1442(then)X1608(converts)X1908(the)X2034(resulting)X2342(indices)X2597(or)X2692(RGBA)X2942(colors)X3166(to)X3257(fragments)X3607(by)X3716(attaching)X1154 1862(the)N1272(current)X1520(raster)X1719(position)X2 f1996(z)X1 f2047(coordinate)X2406(and)X2542(texture)X2785(coordinates)X3175(to)X3257(each)X3425(pixel,)X3625(then)X3783(assign-)X1154 1958(ing)N1282(window)X1566(coordinates)X1962(\($x)X2095(sub)X2232(r)X2285(+)X2356(i)X2404(,)X2450(y)X2516(sub)X2653(r)X2706(+)X2777(j$\),)X2912(where)X3135(\($x)X3268(sub)X3405(r)X3459(,)X3506(y)X3573(sub)X3711(r$\))X3832(is)X3912(the)X1154 2054(current)N1410(raster)X1617(position,)X1922(and)X2066(the)X2192(pixel)X2379(was)X2531(the)X2656($i$th)X2847(pixel)X3034(in)X3123(the)X3248($j$th)X3439(row.)X3631(These)X3850(pixel)X1154 2150(fragments)N1500(are)X1624(then)X1787(treated)X2031(just)X2171(like)X2317(the)X2441(fragments)X2788(generated)X3127(by)X3233(rasterizing)X3598(points,)X3839(lines,)X1154 2246(or)N1248(polygons.)X1608(Texture)X1885(mapping,)X2212(fog,)X2366(and)X2509(all)X2616(the)X2741(fragment)X3057(operations)X3417(are)X3542(applied)X3804(before)X1154 2342(the)N1272(fragments)X1613(are)X1732(written)X1979(to)X2061(the)X2179(frame)X2387(buffer.)X3 f554 2476(GL_DEPTH)N1 f1154(Depth)X1390(values)X1635(are)X1774(read)X1953(from)X2149(the)X2287(depth)X2506(buffer)X2744(and)X2901(converted)X3259(directly)X3545(to)X3648(an)X3765(internal)X1154 2572(\257oating-point)N1633(format)X1891(with)X2077(unspeci\256ed)X2486(precision.)X2863(The)X3031(resulting)X3354(\257oating-point)X3832(depth)X1154 2668(value)N1361(is)X1447(then)X1618(multiplied)X1979(by)X3 f2092(GL_DEPTH_SCALE)X1 f2862(and)X3012(added)X3238(to)X3 f3334(GL_DEPTH_BIAS)X1 f3990(.)X1154 2764(The)N1299(result)X1497(is)X1570(clamped)X1862(to)X1944(the)X2062(range)X2261([0,1].)X1154 2898(The)N1313(GL)X1454(then)X1626(converts)X1932(the)X2065(resulting)X2380(depth)X2593(components)X3015(to)X3112(fragments)X3468(by)X3583(attaching)X3912(the)X1154 2994(current)N1412(raster)X1621(position)X1908(color)X2102(or)X2198(color)X2392(index)X2599(and)X2744(texture)X2996(coordinates)X3395(to)X3486(each)X3663(pixel,)X3872(then)X1154 3090(assigning)N1478(window)X1758(coordinates)X2150(\($x)X2279(sub)X2413(r)X2463(+)X2531(i)X2576(,)X2619(y)X2682(sub)X2816(r)X2866(+)X2934(j$\),)X3066(where)X3286(\($x)X3416(sub)X3550(r)X3600(,)X3643(y)X3706(sub)X3840(r$\))X3957(is)X1154 3186(the)N1284(current)X1544(raster)X1755(position,)X2064(and)X2212(the)X2342(pixel)X2534(was)X2690(the)X2819($i$th)X3014(pixel)X3205(in)X3298(the)X3427($j$th)X3622(row.)X3818(These)X1154 3282(pixel)N1340(fragments)X1687(are)X1812(then)X1976(treated)X2221(just)X2362(like)X2509(the)X2634(fragments)X2982(generated)X3322(by)X3429(rasterizing)X3795(points,)X1154 3378(lines,)N1355(or)X1452(polygons.)X1815(Texture)X2095(mapping,)X2425(fog,)X2582(and)X2728(all)X2837(the)X2964(fragment)X3283(operations)X3646(are)X3774(applied)X1154 3474(before)N1380(the)X1498(fragments)X1839(are)X1958(written)X2205(to)X2287(the)X2405(frame)X2613(buffer.)X3 f554 3608(GL_STENCIL)N1 f1154(Stencil)X1402(indices)X1655(are)X1780(read)X1945(from)X2127(the)X2251(stencil)X2486(buffer)X2709(and)X2851(converted)X3195(to)X3284(an)X3387(internal)X3659(\256xed-point)X1154 3704(format)N1395(with)X1564(an)X1667(unspeci\256ed)X2059(number)X2331(of)X2425(bits)X2567(to)X2656(the)X2781(right)X2958(of)X3051(the)X3175(binary)X3406(point.)X3636(Each)X3823(\256xed-)X1154 3800(point)N1383(index)X1626(is)X1744(then)X1947(shifted)X2230(left)X2403(by)X3 f2549(GL_INDEX_SHIFT)X1 f3307(bits,)X3508(and)X3690(added)X3948(to)X3 f1154 3896(GL_INDEX_OFFSET)N1 f1917(.)X1980(If)X3 f2057(GL_INDEX_SHIFT)X1 f2772(is)X2848(negative,)X3163(the)X3284(shift)X3449(is)X3525(to)X3610(the)X3730(right.)X3943(In)X1154 3992(either)N1394(case,)X1610(zero)X1806(bits)X1978(\256ll)X2123(otherwise)X2492(unspeci\256ed)X2915(bit)X3057(locations)X3404(in)X3524(the)X3680(result.)X3956(If)X3 f1154 4088(GL_MAP_STENCIL)N1 f1910(is)X1991(true,)X2164(the)X2290(index)X2496(is)X2576(replaced)X2876(with)X3045(the)X3170(value)X3371(that)X3518(it)X3589 0.3889(references)AX3948(in)X1154 4184(lookup)N1418(table)X3 f1616(GL_PIXEL_MAP_S_TO_S)X1 f2561(.)X2643(Whether)X2962(the)X3102(lookup)X3366(replacement)X3802(of)X3912(the)X1154 4280(index)N1363(is)X1447(done)X1634(or)X1732(not,)X1885(the)X2014(integer)X2268(part)X2424(of)X2522(the)X2651(index)X2859(is)X2942(then)X3110(ANDed)X3390(with)X3562($2)X3672(sup)X3813(b)X3883(-1$,)X1154 4376(where)N1378($b$)X1525(is)X1605(the)X1730(number)X2002(of)X2097(bits)X2240(in)X2330(the)X2456(stencil)X2693(buffer.)X2958(The)X3111(resulting)X3419(stencil)X3656(indices)X3911(are)X1154 4472(then)N1318(written)X1571(to)X1658(the)X1781(stencil)X2015(buffer)X2237(such)X2409(that)X2554(the)X2677(index)X2880(read)X3044(from)X3225(the)X3348($i$th)X3537(location)X3820(of)X3912(the)X1154 4568($j$th)N1339(row)X1485(is)X1559(written)X1807(to)X1890(location)X2169(\($x)X2297(sub)X2430(r)X2479(+)X2546(i)X2590(,)X2632(y)X2694(sub)X2827(r)X2876(+)X2943(j$\),)X3074(where)X3293(\($x)X3422(sub)X3555(r)X3604(,)X3646(y)X3708(sub)X3841(r$\))X3957(is)X1154 4664(the)N1274(current)X1524(raster)X1725(position.)X2044(Only)X2226(the)X2346(pixel)X2528(ownership)X2883(test,)X3035(the)X3154(scissor)X3393(test,)X3545(and)X3682(the)X3801(stencil)X1154 4760(writemask)N1508(affect)X1712(these)X1897(write)X2082(operations.)X554 4894(The)N699(rasterization)X1116(described)X1444(thus)X1597(far)X1707(assumes)X1994(pixel)X2174(zoom)X2372(factors)X2611(of)X2698(1.0.)X2858(If)X3 f554 4990(fglPixelZoom)N1 f1036(is)X1113(used)X1284(to)X1370(change)X1622(the)X1745($x$)X1890(and)X2031($y$)X2176(pixel)X2361(zoom)X2564(factors,)X2828(pixels)X3044(are)X3168(converted)X3510(to)X3597(fragments)X3943(as)X554 5086(follows.)N858(If)X936(\($x)X1067(sub)X1202(r$,)X1312($y)X1415(sub)X1549(r$\))X1666(is)X1742(the)X1863(current)X2114(raster)X2316(position,)X2616(and)X2755(a)X2814(given)X3015(pixel)X3198(is)X3274(in)X3359(the)X3480($i$th)X3667(location)X3948(in)X554 5182(the)N672($j$th)X856(row)X1001(of)X1088(the)X1206(source)X1436(pixel)X1616(rectangle,)X1952(then)X2111(fragments)X2453(are)X2573(generated)X2907(for)X3022(pixels)X3234(whose)X3460(centers)X3709(are)X3829(in)X3912(the)X554 5278(rectangle)N869(with)X1031(corners)X1288(at)X1441 5412(\($x)N1568(sub)X1699(r)X1746(+)X1811(zoom)X2009(sub)X2140(x)X2200(i$,)X2302($y)X2402(sub)X2533(r)X2580(+)X2645(zoom)X2843(sub)X2974(y)X3034(j$\))X2224 5556(and)N1242 5700(\($x)N1369(sub)X1500(r)X1547(+)X1612(zoom)X1810(sub)X1941(x)X2001(\(i)X2070(+)X2135(1\)$,)X2282($y)X2382(sub)X2513(r)X2560(+)X2625(zoom)X2823(sub)X2954(y)X3014(\()X3061(j)X3103(+)X3168(1)X3228(\)$\))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(LC)X410(CO)X460(OP)X514(PY)X556(YP)X610(PI)X652(IX)X678(XE)X732(EL)X778(LS)X824(S)X870(\()X872(\()X908(\))X910(\))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)X3342(F)X3344(FG)X3386(GL)X3440(LC)X3486(CO)X3536(OP)X3590(PY)X3632(YP)X3686(PI)X3728(IX)X3754(XE)X3808(EL)X3854(LS)X3900(S)X3946(\()X3948(\()X3984(\))X3986(\))X10 s554 864(where)N771($zoom)X1009(sub)X1140(x$)X1240(is)X1313(the)X1431(value)X1625(of)X3 f1712(GL_ZOOM_X)X1 f2238(and)X2374($zoom)X2612(sub)X2743(y$)X2843(is)X2916(the)X3034(value)X3228(of)X3 f3315(GL_ZOOM_Y)X1 f3821(.)X9 s266 998(E)N268(EX)X314(XA)X368(AM)X422(MP)X488(PL)X530(LE)X576(ES)X622(S)X10 s554 1094(To)N663(copy)X839(the)X957(color)X1142(pixel)X1322(in)X1404(the)X1522(lower)X1725(left)X1852(corner)X2079(of)X2167(the)X2286(window)X2565(to)X2648(the)X2767(current)X3016(raster)X3216(position,)X3514(use)X3642(glCopyPix-)X554 1190(els\(0,)N750(0,)X830(1,)X910(1,)X3 f990(GL_COLOR)X1 f1438(\);)X9 s266 1324(N)N268(NO)X322(OT)X376(TE)X422(ES)X468(S)X10 s554 1420(Modes)N792(speci\256ed)X1097(by)X3 f1197(fglPixelStore)X1 f1658(have)X1830(no)X1930(effect)X2134(on)X2234(the)X2352(operation)X2675(of)X3 f2762(fglCopyPixels)X1 f3233(.)X9 s266 1554(E)N268(ER)X314(RR)X364(RO)X414(OR)X468(RS)X518(S)X3 f10 s554 1650(GL_INVALID_ENUM)N1 f1361(is)X1434(generated)X1767(if)X2 f1836(type)X1 f1990(is)X2063(not)X2185(an)X2281(accepted)X2583(value.)X3 f554 1784(GL_INVALID_VALUE)N1 f1396(is)X1469(generated)X1802(if)X1871(either)X2 f2074(width)X1 f2271(or)X2 f2358(height)X1 f2578(is)X2651(negative.)X3 f554 1918(GL_INVALID_OPERATION)N1 f1600(is)X1673(generated)X2006(if)X2 f2075(type)X1 f2229(is)X3 f2302(GL_DEPTH)X1 f2752(and)X2888(there)X3069(is)X3142(no)X3242(depth)X3440(buffer.)X3 f554 2052(GL_INVALID_OPERATION)N1 f1600(is)X1673(generated)X2006(if)X2 f2075(type)X1 f2229(is)X3 f2302(GL_STENCIL)X1 f2827(and)X2963(there)X3144(is)X3217(no)X3317(stencil)X3546(buffer.)X3 f554 2186(GL_INVALID_OPERATION)N1 f1603(is)X1679(generated)X2015(if)X3 f2087(fglCopyPixels)X1 f2581(is)X2657(executed)X2966(between)X3257(the)X3378(execution)X3714(of)X3 f3805(fglBe-)X554 2282(gin)N1 f680(and)X816(the)X934(corresponding)X1413(execution)X1745(of)X3 f1832(fglEnd)X1 f2062(.)X9 s266 2416(A)N268(AS)X322(SS)X364(SO)X406(OC)X460(CI)X510(IA)X536(AT)X590(TE)X636(ED)X682(D)X766(G)X768(GE)X822(ET)X868(TS)X914(S)X3 f10 s554 2512(fglGet)N1 f788(with)X950(argument)X3 f1273(GL_CURRENT_RASTER_POSITION)X554 2608(fglGet)N1 f788(with)X950(argument)X3 f1273(GL_CURRENT_RASTER_POSITION_VALID)X1 f9 s266 2742(S)N268(SE)X310(EE)X356(E)X432(A)X434(AL)X488(LS)X534(SO)X576(O)X3 f10 s554 2838(fglDepthFunc)N1 f1025(,)X3 f1133(fglDrawBuffer)X1 f1637(,)X3 f1745(fglDrawPixels)X1 f2226(,)X3 f2335(fglPixelMap)X1 f2753(,)X3 f2862(fglPixelTransfer)X1 f3423(,)X3 f3532(fglPixelZoom)X1 f3990(,)X3 f554 2934(fglRasterPos)N1 f991(,)X3 f1031(fglReadBuffer)X1 f1521(,)X3 f1561(fglReadPixels)X1 f2028(,)X3 f2068(fglStencilFunc)X1 f266 6144(Page)N442(3)X3577(July)X3730(22,)X3850(1997)X10 f0 6428(h)N24(hhh)X4176(h)X4200(hhh)X3 p%%Trailerxtxs
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -