📄 teximage1d.ps
字号:
10 f0 96(h)N24(hhh)X4176(h)X4200(hhh)X9 s1 f266 480(G)N268(GL)X322(LT)X368(TE)X414(EX)X460(XI)X514(IM)X540(MA)X606(AG)X660(GE)X714(E1)X760(1D)X798(D)X856(\()X858(\()X894(\))X896(\))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)X3356(G)X3358(GL)X3412(LT)X3458(TE)X3504(EX)X3550(XI)X3604(IM)X3630(MA)X3696(AG)X3750(GE)X3804(E1)X3850(1D)X3888(D)X3946(\()X3948(\()X3984(\))X3986(\))X10 s554 864(resolution)N912(and)X1067(format)X1320(used)X1506(to)X1607(store)X1802(the)X1939(image.)X2214(The)X2378(last)X2528(three)X2728(arguments)X3101(describe)X3408(how)X3585(the)X3722(image)X3957(is)X554 960(represented)N945(in)X1027(memory;)X1336(they)X1494(are)X1613(identical)X1909(to)X1991(the)X2109(pixel)X2289(formats)X2554(used)X2721(for)X3 f2835(glDrawPixels)X1 f3289(.)X554 1094(If)N2 f631(target)X1 f845(is)X3 f921(GL_PROXY_TEXTURE_1D)X1 f1925(,)X1968(no)X2071(data)X2228(is)X2304(read)X2466(from)X2 f2645(pixels)X1 f2832(,)X2876(but)X3002(all)X3106(of)X3197(the)X3319(texture)X3566(image)X3786(state)X3957(is)X554 1190(recalculated,)N985(checked)X1271(for)X1387(consistency,)X1803(and)X1941(checked)X2227(against)X2476(the)X2596(implementation's)X3178(capabilities.)X3605(If)X3681(the)X3801(imple-)X554 1286(mentation)N898(cannot)X1136(handle)X1374(a)X1434(texture)X1681(of)X1772(the)X1894(requested)X2226(texture)X2473(size,)X2642(it)X2710(sets)X2854(all)X2958(of)X3049(the)X3171(image)X3392(state)X3564(to)X3651(0,)X3736(but)X3863(does)X554 1382(not)N686(generate)X989(an)X1095(error)X1282(\(see)X3 f1442(glGetError)X1 f1830(\).)X1907(To)X2026(query)X2239(for)X2363(an)X2469(entire)X2682(mipmap)X2974(array,)X3190(use)X3327(an)X3433(image)X3659(array)X3854(level)X554 1478(greater)N798(than)X956(or)X1043(equal)X1237(to)X1319(1.)X554 1612(If)N2 f629(target)X1 f841(is)X3 f915(GL_TEXTURE_1D)X1 f1594(,)X1635(data)X1790(is)X1864(read)X2024(from)X2 f2201(pixels)X1 f2409(as)X2497(a)X2554(sequence)X2870(of)X2958(signed)X3188(or)X3277(unsigned)X3588(bytes,)X3799(shorts,)X554 1708(or)N643(longs,)X858(or)X947(single-precision)X1481(\257oating-point)X1937(values,)X2183(depending)X2538(on)X2 f2639(type)X1 f2773(.)X2814(These)X3027(values)X3253(are)X3373(grouped)X3657(into)X3802(sets)X3943(of)X554 1804(one,)N711(two,)X872(three,)X1074(or)X1162(four)X1317(values,)X1563(depending)X1918(on)X2 f2019(format)X1 f2232(,)X2273(to)X2356(form)X2533(elements.)X2859(If)X2 f2934(type)X1 f3089(is)X3 f3164(GL_BITMAP)X1 f3639(,)X3681(the)X3801(data)X3957(is)X554 1900(considered)N931(as)X1027(a)X1092(string)X1303(of)X1399(unsigned)X1717(bytes)X1915(\(and)X2 f2087(format)X1 f2329(must)X2513(be)X3 f2618(GL_COLOR_INDEX)X1 f3364(\).)X3440(Each)X3629(data)X3791(byte)X3957(is)X554 1996(treated)N795(as)X884(eight)X1066(1-bit)X1239(elements,)X1566(with)X1730(bit)X1836(ordering)X2130(determined)X2513(by)X3 f2615(GL_UNPACK_LSB_FIRST)X1 f3600(\(see)X3 f3752(glPixel-)X554 2092(Store)N1 f737(\).)X554 2226(The)N708(\256rst)X861(element)X1144(corresponds)X1561(to)X1652(the)X1779(left)X1915(end)X2060(of)X2156(the)X2283(texture)X2535(array.)X2771(Subsequent)X3170(elements)X3485(progress)X3787(left-to-)X554 2322(right)N732(through)X1008(the)X1133(remaining)X1485(texels)X1699(in)X1788(the)X1913(texture)X2163(array.)X2396(The)X2548(\256nal)X2717(element)X2998(corresponds)X3412(to)X3500(the)X3624(right)X3801(end)X3943(of)X554 2418(the)N672(texture)X915(array.)X2 f554 2552(format)N1 f787(determines)X1159(the)X1277(composition)X1692(of)X1779(each)X1947(element)X2221(in)X2 f2303(pixels)X1 f2490(.)X2550(It)X2619(can)X2751(assume)X3007(one)X3143(of)X3230(nine)X3388(symbolic)X3701(values:)X3 f554 2686(GL_COLOR_INDEX)N1 f954 2782(Each)N1149(element)X1437(is)X1524(a)X1594(single)X1819(value,)X2047(a)X2118(color)X2318(index.)X2551(The)X2711(GL)X2853(converts)X3160(it)X3239(to)X3336(\256xed)X3531(point)X3730(\(with)X3934(an)X954 2878(unspeci\256ed)N1342(number)X1610(of)X1700(zero)X1862(bits)X1999(to)X2083(the)X2203(right)X2376(of)X2465(the)X2585(binary)X2812(point\),)X3045(shifted)X3285(left)X3414(or)X3503(right)X3676(depending)X954 2974(on)N1071(the)X1206(value)X1417(and)X1570(sign)X1740(of)X3 f1845(GL_INDEX_SHIFT)X1 f2537(,)X2595(and)X2749(added)X2979(to)X3 f3079(GL_INDEX_OFFSET)X1 f3880(\(see)X3 f954 3070(glPixelTransfer)N1 f1488(\).)X1570(The)X1730(resulting)X2045(index)X2257(is)X2344(converted)X2695(to)X2791(a)X2861(set)X2984(of)X3085(color)X3284(components)X3705(using)X3912(the)X3 f954 3166(GL_PIXEL_MAP_I_TO_R)N1 f1900(,)X3 f1999(GL_PIXEL_MAP_I_TO_G)X1 f2949(,)X3 f3049(GL_PIXEL_MAP_I_TO_B)X1 f3990(,)X954 3262(and)N3 f1090(GL_PIXEL_MAP_I_TO_A)X1 f2056(tables,)X2283(and)X2419(clamped)X2711(to)X2793(the)X2911(range)X3110([0,1].)X3 f554 3396(GL_RED)N1 f954(Each)X1138(element)X1415(is)X1491(a)X1550(single)X1764(red)X1891(component.)X2291(The)X2440(GL)X2571(converts)X2867(it)X2935(to)X3021(\257oating)X3289(point)X3477(and)X3617(assembles)X3966(it)X954 3492(into)N1102(an)X1202(RGBA)X1448(element)X1726(by)X1830(attaching)X2148(0)X2212(for)X2330(green)X2533(and)X2673(blue,)X2855(and)X2995(1)X3059(for)X3177(alpha.)X3394(Each)X3578(component)X3957(is)X954 3588(then)N1145(multiplied)X1527(by)X1661(the)X1813(signed)X2076(scale)X2291(factor)X3 f2533(GL_c_SCALE)X1 f3030(,)X3104(added)X3350(to)X3466(the)X3618(signed)X3881(bias)X3 f954 3684(GL_c_BIAS)N1 f1371(,)X1411(and)X1547(clamped)X1839(to)X1921(the)X2039(range)X2238([0,1])X2412(\(see)X3 f2562(glPixelTransfer)X1 f3096(\).)X3 f554 3818(GL_GREEN)N1 f954 3914(Each)N1138(element)X1415(is)X1491(a)X1550(single)X1764(green)X1966(component.)X2365(The)X2513(GL)X2643(converts)X2938(it)X3005(to)X3090(\257oating)X3357(point)X3545(and)X3685(assembles)X954 4010(it)N1023(into)X1172(an)X1273(RGBA)X1520(element)X1799(by)X1903(attaching)X2221(0)X2285(for)X2403(red)X2530(and)X2670(blue,)X2852(and)X2992(1)X3056(for)X3174(alpha.)X3392(Each)X3577(component)X3957(is)X954 4106(then)N1145(multiplied)X1527(by)X1661(the)X1813(signed)X2076(scale)X2291(factor)X3 f2533(GL_c_SCALE)X1 f3030(,)X3104(added)X3350(to)X3466(the)X3618(signed)X3881(bias)X3 f954 4202(GL_c_BIAS)N1 f1371(,)X1411(and)X1547(clamped)X1839(to)X1921(the)X2039(range)X2238([0,1])X2412(\(see)X3 f2562(glPixelTransfer)X1 f3096(\).)X3 f554 4336(GL_BLUE)N1 f954(Each)X1136(element)X1411(is)X1485(a)X1542(single)X1754(blue)X1913(component.)X2310(The)X2456(GL)X2585(converts)X2879(it)X2945(to)X3029(\257oating)X3295(point)X3481(and)X3619(assembles)X3966(it)X954 4432(into)N1104(an)X1206(RGBA)X1454(element)X1734(by)X1840(attaching)X2160(0)X2226(for)X2346(red)X2475(and)X2617(green,)X2842(and)X2984(1)X3050(for)X3170(alpha.)X3390(Each)X3576(component)X3957(is)X954 4528(then)N1145(multiplied)X1527(by)X1661(the)X1813(signed)X2076(scale)X2291(factor)X3 f2533(GL_c_SCALE)X1 f3030(,)X3104(added)X3350(to)X3466(the)X3618(signed)X3881(bias)X3 f954 4624(GL_c_BIAS)N1 f1371(,)X1411(and)X1547(clamped)X1839(to)X1921(the)X2039(range)X2238([0,1])X2412(\(see)X3 f2562(glPixelTransfer)X1 f3096(\).)X3 f554 4758(GL_ALPHA)N1 f954 4854(Each)N1138(element)X1415(is)X1491(a)X1550(single)X1764(alpha)X1961(component.)X2360(The)X2508(GL)X2639(converts)X2935(it)X3003(to)X3089(\257oating)X3357(point)X3545(and)X3685(assembles)X954 4950(it)N1019(into)X1164(an)X1261(RGBA)X1504(element)X1779(by)X1880(attaching)X2195(0)X2256(for)X2371(red,)X2515(green,)X2735(and)X2872(blue.)X3071(Each)X3252(component)X3628(is)X3701(then)X3859(mul-)X954 5046(tiplied)N1185(by)X1292(the)X1417(signed)X1653(scale)X1841(factor)X3 f2056(GL_c_SCALE)X1 f2553(,)X2600(added)X2819(to)X2909(the)X3035(signed)X3272(bias)X3 f3429(GL_c_BIAS)X1 f3846(,)X3894(and)X954 5142(clamped)N1246(to)X1328(the)X1446(range)X1645([0,1])X1819(\(see)X3 f1969(glPixelTransfer)X1 f2503(\).)X3 f554 5276(GL_RGB)N1 f954(Each)X1140(element)X1419(is)X1497(an)X1598(RGB)X1787(triple.)X2021(The)X2172(GL)X2305(converts)X2603(it)X2673(to)X2761(\257oating)X3031(point)X3221(and)X3363(assembles)X3714(it)X3784(into)X3934(an)X954 5372(RGBA)N1208(element)X1493(by)X1604(attaching)X1929(1)X2000(for)X2125(alpha.)X2370(Each)X2562(component)X2949(is)X3033(then)X3202(multiplied)X3561(by)X3672(the)X3801(signed)X954 5468(scale)N1140(factor)X3 f1353(GL_c_SCALE)X1 f1850(,)X1896(added)X2114(to)X2202(the)X2326(signed)X2561(bias)X3 f2716(GL_c_BIAS)X1 f3133(,)X3179(and)X3321(clamped)X3619(to)X3707(the)X3831(range)X954 5564([0,1])N1128(\(see)X3 f1278(glPixelTransfer)X1 f1812(\).)X3 f554 5698(GL_RGBA)N1 f954 5794(Each)N1138(element)X1415(contains)X1706(all)X1810(four)X1968(components.)X2419(Each)X2604(component)X2984(is)X3061(then)X3223(multiplied)X3575(by)X3679(the)X3801(signed)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(G)N268(GL)X322(LT)X368(TE)X414(EX)X460(XI)X514(IM)X540(MA)X606(AG)X660(GE)X714(E1)X760(1D)X798(D)X856(\()X858(\()X894(\))X896(\))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)X3356(G)X3358(GL)X3412(LT)X3458(TE)X3504(EX)X3550(XI)X3604(IM)X3630(MA)X3696(AG)X3750(GE)X3804(E1)X3850(1D)X3888(D)X3946(\()X3948(\()X3984(\))X3986(\))X10 s954 864(scale)N1141(factor)X3 f1355(GL_c_SCALE)X1 f1852(,)X1898(added)X2116(to)X2204(the)X2328(signed)X2563(bias)X3 f2718(GL_c_BIAS)X1 f3135(,)X3181(and)X3323(clamped)X3621(to)X3708(the)X3831(range)X954 960([0,1])N1128(\(see)X3 f1278(glPixelTransfer)X1 f1812(\).)X3 f554 1094(GL_LUMINANCE)N1 f954 1190(Each)N1135(element)X1409(is)X1482(a)X1539(single)X1751(luminance)X2106(value.)X2341(The)X2487(GL)X2615(converts)X2908(it)X2973(to)X3056(\257oating)X3321(point,)X3526(then)X3685(assembles)X
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -