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

📄 fglteximage2d.ps

📁 计算机图形学~想必是很多人需要的~在此共享一下
💻 PS
📖 第 1 页 / 共 3 页
字号:
2306(the)X2433(luminance)X2796(value)X2999(three)X3189(times)X3391(for)X3514(red,)X3666(green,)X3894(and)X954 1708(blue)N1119(and)X1262(attaching)X1583(1)X1650(for)X1771(alpha.)X1992(Each)X2180(component)X2563(is)X2643(then)X2808(multiplied)X3163(by)X3270(the)X3396(signed)X3633(scale)X3822(factor)X3 f954 1804(GL_c_SCALE)N1 f1451(,)X1502(added)X1725(to)X1818(the)X1947(signed)X2187(bias)X3 f2347(GL_c_BIAS)X1 f2764(,)X2815(and)X2962(clamped)X3265(to)X3358(the)X3487(range)X3696([0,1])X3880(\(see)X3 f954 1900(fglPixelTransfer)N1 f1515(\).)X3 f554 2034(GL_LUMINANCE_ALPHA)N1 f954 2130(Each)N1135(element)X1409(is)X1482(a)X1539(luminance/alpha)X2090(pair.)X2276(The)X2422(GL)X2550(converts)X2843(it)X2908(to)X2991(\257oating)X3256(point,)X3461(then)X3620(assembles)X3966(it)X954 2226(into)N1100(an)X1198(RGBA)X1442(element)X1718(by)X1820(replicating)X2185(the)X2305(luminance)X2661(value)X2857(three)X3040(times)X3235(for)X3351(red,)X3495(green,)X3715(and)X3852(blue.)X954 2322(Each)N1146(component)X1534(is)X1619(then)X1789(multiplied)X2149(by)X2261(the)X2391(signed)X2632(scale)X2825(factor)X3 f3045(GL_c_SCALE)X1 f3542(,)X3594(added)X3818(to)X3912(the)X954 2418(signed)N1183(bias)X3 f1332(GL_c_BIAS)X1 f1749(,)X1789(and)X1925(clamped)X2217(to)X2299(the)X2417(range)X2616([0,1])X2790(\(see)X3 f954 2514(fglPixelTransfer)N1 f1515(\).)X554 2648(Refer)N757(to)X843(the)X3 f965(fglDrawPixels)X1 f1471 0.4531(reference)AX1797(page)X1974(for)X2093(a)X2154(description)X2535(of)X2627(the)X2750(acceptable)X3115(values)X3345(for)X3464(the)X2 f3587(type)X1 f3746(parame-)X554 2744(ter.)N554 2878(If)N633(an)X734(application)X1115(wants)X1327(to)X1414(store)X1595(the)X1718(texture)X1966(at)X2049(a)X2110(certain)X2354(resolution)X2699(or)X2791(in)X2879(a)X2941(certain)X3186(format,)X3446(it)X3516(can)X3654(request)X3912(the)X554 2974(resolution)N911(and)X1064(format)X1315(with)X2 f1494(internalformat)X1 f1960(.)X2017(The)X2179(GL)X2323(will)X2484(choose)X2743(an)X2855(internal)X3136(representation)X3627(that)X3783(closely)X554 3070(approximates)N1030(that)X1194(requested)X1547(by)X2 f1672(internalformat)X1 f2138(,)X2203(but)X2350(it)X2439(may)X2622(not)X2769(match)X3010(exactly.)X3327(\(The)X3524(representations)X554 3166(speci\256ed)N866(by)X3 f973(GL_LUMINANCE)X1 f1631(,)X3 f1678(GL_LUMINANCE_ALPHA)X1 f2656(,)X3 f2703(GL_RGB)X1 f3031(,)X3078(and)X3 f3221(GL_RGBA)X1 f3633(must)X3814(match)X554 3262(exactly.)N826(The)X971(numeric)X1254(values)X1479(1,)X1559(2,)X1639(3,)X1719(and)X1855(4)X1915(may)X2073(also)X2222(be)X2318(used)X2485(to)X2567(specify)X2819(the)X2937(above)X3149(representations.\))X554 3396(Use)N704(the)X3 f827(GL_PROXY_TEXTURE_2D)X1 f1857(target)X2066(to)X2154(try)X2269(out)X2397(a)X2459(resolution)X2805(and)X2947(format.)X3207(The)X3358(implementation)X3886(will)X554 3492(update)N797(and)X942(recompute)X1310(its)X1414(best)X1572(match)X1797(for)X1920(the)X2047(requested)X2384(storage)X2645(resolution)X2994(and)X3139(format.)X3401(To)X3518(then)X3684(query)X3895(this)X554 3588(state,)N741(call)X3 f877 0.1875(fglGetTexLevelParameter)AX1 f1774(.)X1834(If)X1908(the)X2026(texture)X2269(cannot)X2503(be)X2599(accommodated,)X3125(texture)X3368(state)X3535(is)X3608(set)X3717(to)X3799(0.)X554 3722(A)N635(one-component)X1157(texture)X1403(image)X1622(uses)X1783(only)X1948(the)X2069(red)X2195(component)X2574(of)X2665(the)X2787(RGBA)X3033(color)X3222(extracted)X3541(from)X2 f3721(pixels)X1 f3908(.)X3952(A)X554 3818(two-component)N1079(image)X1297(uses)X1457(the)X1577(R)X1652(and)X1790(A)X1870(values.)X2137(A)X2217(three-component)X2783(image)X3001(uses)X3161(the)X3281(R,)X3376(G,)X3475(and)X3612(B)X3686(values.)X3952(A)X554 3914(four-component)N1091(image)X1307(uses)X1465(all)X1565(of)X1652(the)X1770(RGBA)X2012(components.)X9 s266 4048(N)N268(NO)X322(OT)X376(TE)X422(ES)X468(S)X10 s554 4144(Texturing)N890(has)X1017(no)X1117(effect)X1321(in)X1403(color)X1588(index)X1786(mode.)X554 4278(The)N700(texture)X944(image)X1161(can)X1294(be)X1391(represented)X1783(by)X1884(the)X2003(same)X2189(data)X2344(formats)X2610(as)X2698(the)X2817(pixels)X3029(in)X3113(a)X3 f3171(fglDrawPixels)X1 f3674(command,)X554 4374(except)N801(that)X3 f958(GL_STENCIL_INDEX)X1 f1797(and)X3 f1949(GL_DEPTH_COMPONENT)X1 f2984(cannot)X3234(be)X3346(used.)X3 f3569(fglPixelStore)X1 f554 4470(and)N3 f690(fglPixelTransfer)X1 f1271(modes)X1500(affect)X1704(texture)X1947(images)X2194(in)X2276(exactly)X2528(the)X2646(way)X2800(they)X2958(affect)X3 f3162(fglDrawPixels)X1 f3643(.)X3 f554 4604(fglTexImage2D)N1 f1104(and)X3 f1240(GL_PROXY_TEXTURE_2D)X1 f2264(are)X2383(only)X2545(available)X2855(if)X2924(the)X3042(GL)X3169(version)X3425(is)X3498(1.1)X3618(or)X3705(greater.)X554 4738(Internal)N824(formats)X1089(other)X1274(than)X1432(1,)X1512(2,)X1592(3,)X1672(or)X1759(4)X1819(may)X1977(only)X2139(be)X2235(used)X2402(if)X2471(the)X2589(GL)X2716(version)X2972(is)X3045(1.1)X3165(or)X3252(greater.)X554 4872(In)N653(GL)X792(version)X1060(1.1)X1192(or)X1291(greater,)X2 f1567(pixels)X1 f1786(may)X1956(be)X2064(a)X2132(null)X2288(pointer.)X2567(In)X2666(this)X2813(case)X2984(texture)X3239(memory)X3539(is)X3625(allocated)X3948(to)X554 4968(accommodate)N1024(a)X1084(texture)X1331(of)X1422(width)X2 f1628(width)X1 f1829(and)X1969(height)X2 f2193(height)X1 f(.)S2457(You)X2619(can)X2755(then)X2917(download)X3257(subtextures)X3645(to)X3730(initialize)X554 5064(this)N690(texture)X934(memory.)X1242(The)X1388(image)X1605(is)X1679(unde\256ned)X2016(if)X2086(the)X2205(user)X2361(tries)X2521(to)X2605(apply)X2805(an)X2903(uninitialized)X3325(portion)X3578(of)X3667(the)X3787(texture)X554 5160(image)N770(to)X852(a)X908(primitive.)X9 s266 5294(E)N268(ER)X314(RR)X364(RO)X414(OR)X468(RS)X518(S)X3 f10 s554 5390(GL_INVALID_ENUM)N1 f1486(is)X1684(generated)X2142(if)X2 f2336(target)X1 f2672(is)X2870(not)X3 f3118(GL_TEXTURE_2D)X1 f3943(or)X3 f554 5486(GL_PROXY_TEXTURE_2D)N1 f1558(.)X3 f554 5620(GL_INVALID_ENUM)N1 f1365(is)X1442(generated)X1779(if)X2 f1852(format)X1 f2089(is)X2166(not)X2292(an)X2392(accepted)X2698(format)X2936(constant.)X3267(Format)X3522(constants)X3845(other)X554 5716(than)N3 f712(GL_STENCIL_INDEX)X1 f1535(and)X3 f1671(GL_DEPTH_COMPONENT)X1 f2690(are)X2809(accepted.)X266 6144(Page)N442(3)X3577(July)X3730(22,)X3850(1997)X4 p%%Page: 4 410 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 s554 864(GL_INVALID_ENUM)N1 f1361(is)X1434(generated)X1767(if)X2 f1836(type)X1 f1990(is)X2063(not)X2185(a)X2241(type)X2399(constant.)X3 f554 998(GL_INVALID_ENUM)N1 f1361(is)X1434(generated)X1767(if)X2 f1836(type)X1 f1990(is)X3 f2063(GL_BITMAP)X1 f2558(and)X2 f2694(format)X1 f2927(is)X3000(not)X3 f3122(GL_COLOR_INDEX)X1 f3868(.)X3 f554 1132(GL_INVALID_VALUE)N1 f1396(is)X1469(generated)X1802(if)X2 f1871(level)X1 f2043(is)X2116(less)X2256(than)X2414(0.)X3 f554 1266(GL_INVALID_VALUE)N1 f1410(may)X1582(be)X1692(generated)X2040(if)X2 f2124(level)X1 f2311(is)X2399(greater)X2658(than)X2831($log)X3008(sub)X3154(2$)X2 f(max)S1 f3368(,)X3423(where)X2 f3655(max)X1 f3824(is)X3912(the)X554 1362(returned)N842(value)X1036(of)X3 f1123(GL_MAX_TEXTURE_SIZE)X1 f2117(.)X3 f554 1496(GL_INVALID_VALUE)N1 f1401(is)X1479(generated)X1817(if)X2 f1891(internalformat)X1 f2382(is)X2460(not)X2587(1,)X2672(2,)X2758(3,)X2844(4,)X2930(or)X3023(one)X3165(of)X3258(the)X3382(accepted)X3690(resolution)X554 1592(and)N690(format)X924(symbolic)X1237(constants.)X3 f554 1726(GL_INVALID_VALUE)N1 f1436(is)X1549(generated)X1922(if)X2 f2031(width)X1 f2268(or)X2 f2396(height)X1 f2657(is)X2771(less)X2952(than)X3151(0)X3252(or)X3380(greater)X3665(than)X3864(2)X3965(+)X3 f554 1822(GL_MAX_TEXTURE_SIZE)N1 f1548(,)X1602(or)X1703(if)X1786(either)X2003(cannot)X2250(be)X2359(represented)X2763(as)X2863($2)X2976(sup)X3120(k)X3193(+)X3271(2\("border"\)$)X3714(for)X3841(some)X554 1918(integer)N797(value)X991(of)X2 f1078(k)X1 f1114(.)X3 f554 2052(GL_INVALID_VALUE)N1 f1396(is)X1469(generated)X1802(if)X2 f1871(border)X1 f2109(is)X2182(not)X2304(0)X2364(or)X2451(1.)X3 f554 2186(GL_INVALID_OPERATION)N1 f1620(is)X1713(generated)X2066(if)X3 f2155(fglTexImage2D)X1 f2725(is)X2818(executed)X3144(between)X3452(the)X3590(execution)X3943(of)X3 f554 2282(fglBegin)N1 f858(and)X994(the)X1112(corresponding)X1591(execution)X1923(of)X3 f2010(fglEnd)X1 f2240(.)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(fglGetTexImage)N554 2608(fglIsEnabled)N1 f1008(with)X1170(argument)X3 f1493(GL_TEXTURE_2D)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(fglCopyPixels)N1 f1025(,)X3 f1257(fglCopyTexImage1D)X1 f1969(,)X3 f2201(fglCopyTexImage2D)X1 f2913(,)X3 f3146(fglCopyTexSubImage1D)X1 f3990(,)X3 f554 2934(fglCopyTexSubImage2D)N1 f1398(,)X3 f1477(fglDrawPixels)X1 f1958(,)X3 f2037(fglPixelStore)X1 f2478(,)X3 f2557(fglPixelTransfer)X1 f3118(,)X3 f3197(fglTexEnv)X1 f3552(,)X3 f3630(fglTexGen)X1 f(,)S3 f554 3030(fglTexImage1D)N1 f1084(,)X3 f1124(fglTexSubImage1D)X1 f1786(,)X3 f1826(fglTexSubImage2D)X1 f2488(,)X3 f554 3126 0.2232(fglTexParameter)AN1 f266 6144(July)N419(22,)X539(1997)X3794(Page)X3970(4)X10 f0 6428(h)N24(hhh)X4176(h)X4200(hhh)X4 p%%Trailerxtxs

⌨️ 快捷键说明

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