⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fglteximage2d.ps

📁 计算机图形学~想必是很多人需要的~在此共享一下
💻 PS
📖 第 1 页 / 共 3 页
字号:
1887(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(LT)X3458(TE)X3504(EX)X3550(XI)X3604(IM)X3630(MA)X3696(AG)X3750(GE)X3804(E2)X3850(2D)X3888(D)X3946(\()X3948(\()X3984(\))X3986(\))X10 s554 864(To)N679(de\256ne)X911(texture)X1170(images,)X1453(call)X3 f1605(fglTexImage2D)X1 f2135(.)X2191(The)X2352(arguments)X2722(describe)X3026(the)X3160(parameters)X3549(of)X3652(the)X3787(texture)X554 960(image,)N805(such)X987(as)X1089(height,)X1344(width,)X1581(width)X1798(of)X1900(the)X2032(border,)X2296(level-of-detail)X2785(number)X3064(\(see)X3 f3228 0.2232(fglTexParameter)AX1 f3813(\),)X3894(and)X554 1056(number)N822(of)X912(color)X1100(components)X1510(provided.)X1858(The)X2006(last)X2140(three)X2324(arguments)X2681(describe)X2972(how)X3134(the)X3256(image)X3476(is)X3553(represented)X3948(in)X554 1152(memory;)N863(they)X1021(are)X1140(identical)X1436(to)X1518(the)X1636(pixel)X1816(formats)X2081(used)X2248(for)X3 f2362(fglDrawPixels)X1 f2843(.)X554 1286(If)N2 f631(target)X1 f845(is)X3 f921(GL_PROXY_TEXTURE_2D)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 1382(recalculated,)N987(checked)X1275(for)X1393(consistency,)X1811(and)X1951(checked)X2239(against)X2490(the)X2612(implementation's)X3195(capabilities.)X3603(If)X3680(the)X3801(imple-)X554 1478(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 1574(not)N685(generate)X987(an)X1092(error)X1278(\(see)X3 f1437(fglGetError)X1 f1852(\).)X1928(To)X2045(query)X2256(for)X2378(an)X2482(entire)X2693(mipmap)X2983(array,)X3197(use)X3332(an)X3436(image)X3660(array)X3854(level)X554 1670(greater)N798(than)X956(or)X1043(equal)X1237(to)X1319(1.)X554 1804(If)N2 f629(target)X1 f841(is)X3 f915(GL_TEXTURE_2D)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 1900(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 1996(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 2092(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 2188(treated)N797(as)X888(eight)X1072(1-bit)X1247(elements,)X1576(with)X1743(bit)X1852(ordering)X2149(determined)X2535(by)X3 f2640(GL_UNPACK_LSB_FIRST)X1 f3628(\(see)X3 f3783(fglPix-)X554 2284(elStore)N1 f795(\).)X554 2418(The)N702(\256rst)X850(element)X1128(corresponds)X1540(to)X1626(the)X1748(lower)X1955(left)X2086(corner)X2316(of)X2407(the)X2529(texture)X2776(image.)X3036(Subsequent)X3429(elements)X3738(progress)X554 2514(left-to-right)N954(through)X1229(the)X1353(remaining)X1704(texels)X1917(in)X2005(the)X2129(lowest)X2364(row)X2514(of)X2606(the)X2729(texture)X2977(image,)X3218(and)X3359(then)X3522(in)X3609(successively)X554 2610(higher)N786(rows)X969(of)X1064(the)X1190(texture)X1441(image.)X1705(The)X1858(\256nal)X2028(element)X2310(corresponds)X2726(to)X2816(the)X2942(upper)X3153(right)X3332(corner)X3566(of)X3661(the)X3787(texture)X554 2706(image.)N2 f554 2840(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 2974(GL_COLOR_INDEX)N1 f954 3070(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 3166(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 3262(on)N1054(the)X1172(value)X1366(and)X1502(sign)X1655(of)X3 f1742(GL_INDEX_SHIFT)X1 f2434(,)X2474(and)X2610(added)X2822(to)X3 f2904(GL_INDEX_OFFSET)X1 f3687(\(see)X3 f954 3358(fglPixelTransfer)N1 f1515(\).)X1594(The)X1751(resulting)X2063(index)X2273(is)X2358(converted)X2707(to)X2801(a)X2869(set)X2990(of)X3089(color)X3286(components)X3706(using)X3912(the)X3 f954 3454(GL_PIXEL_MAP_I_TO_R)N1 f1900(,)X3 f2000(GL_PIXEL_MAP_I_TO_G)X1 f2950(,)X3 f3049(GL_PIXEL_MAP_I_TO_B)X1 f3990(,)X954 3550(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 3684(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 3780(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 3876(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 3972(GL_c_BIAS)N1 f1371(,)X1411(and)X1547(clamped)X1839(to)X1921(the)X2039(range)X2238([0,1])X2412(\(see)X3 f2562(fglPixelTransfer)X1 f3123(\).)X3 f554 4106(GL_GREEN)N1 f954 4202(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 4298(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 4394(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 4490(GL_c_BIAS)N1 f1371(,)X1411(and)X1547(clamped)X1839(to)X1921(the)X2039(range)X2238([0,1])X2412(\(see)X3 f2562(fglPixelTransfer)X1 f3123(\).)X3 f554 4624(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 4720(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 4816(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 4912(GL_c_BIAS)N1 f1371(,)X1411(and)X1547(clamped)X1839(to)X1921(the)X2039(range)X2238([0,1])X2412(\(see)X3 f2562(fglPixelTransfer)X1 f3123(\).)X3 f554 5046(GL_ALPHA)N1 f954 5142(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 5238(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 5334(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 5430(clamped)N1246(to)X1328(the)X1446(range)X1645([0,1])X1819(\(see)X3 f1969(fglPixelTransfer)X1 f2530(\).)X3 f554 5564(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 5660(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 5756(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 5852([0,1])N1128(\(see)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(LT)X410(TE)X456(EX)X502(XI)X556(IM)X582(MA)X648(AG)X702(GE)X756(E2)X802(2D)X840(D)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(LT)X3458(TE)X3504(EX)X3550(XI)X3604(IM)X3630(MA)X3696(AG)X3750(GE)X3804(E2)X3850(2D)X3888(D)X3946(\()X3948(\()X3984(\))X3986(\))X3 f10 s954 864(fglPixelTransfer)N1 f1515(\).)X3 f554 998(GL_RGBA)N1 f954 1094(Each)N1137(element)X1413(contains)X1702(all)X1804(four)X1960(components.)X2409(Each)X2592(component)X2970(is)X3045(multiplied)X3395(by)X3497(the)X3617(signed)X3849(scale)X954 1190(factor)N3 f1169(GL_c_SCALE)X1 f1666(,)X1713(added)X1932(to)X2021(the)X2146(signed)X2381(bias)X3 f2536(GL_c_BIAS)X1 f2953(,)X2999(and)X3141(clamped)X3439(to)X3527(the)X3651(range)X3856([0,1])X954 1286(\(see)N3 f1104(fglPixelTransfer)X1 f1665(\).)X3 f554 1420(GL_LUMINANCE)N1 f954 1516(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)X954 1612(it)N1028(into)X1182(an)X1288(RGBA)X1540(element)X1824(by)X1934(replicating)X

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -