📄 bitmap.ps
字号:
2 f1968(y)X1 f2027(offsets)X2264(to)X2349(be)X2448(added)X2663(to)X2748(the)X2869(current)X3121(raster)X3324(position)X3605(after)X3777(the)X3899(bit-)X554 3818(map)N712(has)X839(been)X1011(drawn.)X1272(The)X1417(\256nal)X1579(argument)X1902(is)X1975(a)X2031(pointer)X2278(to)X2360(the)X2478(bitmap)X2720(image)X2936(itself.)X554 3952(The)N708(bitmap)X959(image)X1184(is)X1266(interpreted)X1643(like)X1793(image)X2019(data)X2183(for)X2307(the)X3 f2435(glDrawPixels)X1 f2919(command,)X3285(with)X2 f3457(width)X1 f3664(and)X2 f3810(height)X1 f554 4048(corresponding)N1035(to)X1119(the)X1239(width)X1443(and)X1581(height)X1803(arguments)X2159(of)X2248(that)X2390(command,)X2748(and)X2886(with)X2 f3050(type)X1 f3205(set)X3315(to)X3 f3398(GL_BITMAP)X1 f3894(and)X2 f554 4144(format)N1 f794(set)X910(to)X3 f999(GL_COLOR_INDEX)X1 f1745(.)X1812(Modes)X2057(speci\256ed)X2369(using)X3 f2569(glPixelStore)X1 f3010(affect)X3221(the)X3346(interpretation)X3805(of)X3899(bit-)X554 4240(map)N712(image)X928(data;)X1104(modes)X1333(speci\256ed)X1638(using)X3 f1831(glPixelTransfer)X1 f2385(do)X2485(not.)X554 4374(If)N629(the)X748(current)X997(raster)X1197(position)X1475(is)X1549(invalid,)X3 f1812(glBitmap)X1 f2148(is)X2222(ignored.)X2528(Otherwise,)X2899(the)X3018(lower)X3222(left)X3351(corner)X3579(of)X3668(the)X3788(bitmap)X554 4470(image)N770(is)X843(positioned)X1196(at)X1274(the)X1392(window)X1670(coordinates)X1656 4662($)N1716(x)X1776(sub)X1907(w)X1985(\304=\304)X10 f2104(Q)X1 f2144(\304)X2191(x)X2251(sub)X2382(r)X2429(\304-\304)X2530(x)X2590(sub)X2721(o)X2781(\304)X10 f2828(P)X1 f2868($)X1656 4854($)N1716(y)X1776(sub)X1907(w)X1985(\304=\304)X10 f2104(Q)X1 f2144(\304)X2191(y)X2251(sub)X2382(r)X2429(\304-\304)X2530(y)X2590(sub)X2721(o)X2781(\304)X10 f2828(P)X1 f2868($)X554 5046(where)N773($)X835(\()X884(x)X946(sub)X1080(r)X1130(,)X1173(y)X1236(sub)X1370(r)X1420(\))X1470($)X1533(is)X1609(the)X1730(raster)X1932(position)X2212(and)X2351($)X2414(\()X2464(x)X2527(sub)X2661(o)X2724(,)X2767(y)X2830(sub)X2964(o)X3027(\))X3077($)X3140(is)X3216(the)X3337(bitmap)X3582(origin.)X3836(Frag-)X554 5142(ments)N770(are)X894(then)X1057(generated)X1395(for)X1514(each)X1687(pixel)X1872(corresponding)X2355(to)X2441(a)X2501(1)X2565(\(one\))X2759(in)X2845(the)X2967(bitmap)X3213(image.)X3473(These)X3689(fragments)X554 5238(are)N678(generated)X1016(using)X1214(the)X1337(current)X1590(raster)X2 f1794(z)X1 f1850(coordinate,)X2234(color)X2424(or)X2516(color)X2706(index,)X2929(and)X3070(current)X3324(raster)X3529(texture)X3778(coordi-)X554 5334(nates.)N784(They)X974(are)X1098(then)X1261(treated)X1505(just)X1645(as)X1737(if)X1811(they)X1973(had)X2113(been)X2289(generated)X2626(by)X2730(a)X2790(point,)X2998(line,)X3162(or)X3253(polygon,)X3559(including)X3885(tex-)X554 5430(ture)N699(mapping,)X554 5526(fogging,)N843(and)X979(all)X1079(per-fragment)X1519(operations)X1873(such)X2040(as)X2127(alpha)X2321(and)X2457(depth)X2655(testing.)X554 5660(After)N746(the)X866(bitmap)X1110(has)X1239(been)X1414(drawn,)X1658(the)X2 f1779(x)X1 f1838(and)X2 f1977(y)X1 f2036(coordinates)X2429(of)X2519(the)X2640(current)X2891(raster)X3093(position)X3373(are)X3495(offset)X3701(by)X2 f3804(xmove)X1 f554 5756(and)N2 f698(ymove)X1 f904(.)X972(No)X1098(change)X1354(is)X1435(made)X1637(to)X1727(the)X2 f1853(z)X1 f1912(coordinate)X2279(of)X2374(the)X2500(current)X2756(raster)X2963(position,)X3268(or)X3362(to)X3451(the)X3576(current)X3831(raster)X554 5852(color,)N759(texture)X1002(coordinates,)X1412(or)X1499(index.)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(G)N268(GL)X322(LB)X368(BI)X418(IT)X444(TM)X490(MA)X556(AP)X610(P)X656(\()X658(\()X694(\))X696(\))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)X3556(G)X3558(GL)X3612(LB)X3658(BI)X3708(IT)X3734(TM)X3780(MA)X3846(AP)X3900(P)X3946(\()X3948(\()X3984(\))X3986(\))X266 864(N)N268(NO)X322(OT)X376(TE)X422(ES)X468(S)X10 s554 960(To)N667(set)X780(a)X840(valid)X1024(raster)X1227(position)X1508(outside)X1763(the)X1885(viewport,)X2214(\256rst)X2362(set)X2475(a)X2535(valid)X2719(raster)X2922(position)X3203(inside)X3419(the)X3542(viewport,)X3872(then)X554 1056(call)N3 f692(glBitmap)X1 f1029(with)X1193(NULL)X1429(as)X1518(the)X2 f1638(bitmap)X1 f1882(parameter)X2226(and)X2364(with)X2 f2528(xmove)X1 f2756(and)X2 f2894(ymove)X1 f3122(set)X3232(to)X3315(the)X3434(offsets)X3669(of)X3757(the)X3876(new)X554 1152(raster)N753(position.)X1050(This)X1212(technique)X1544(is)X1617(useful)X1833(when)X2027(panning)X2305(an)X2401(image)X2617(around)X2860(the)X2978(viewport.)X9 s266 1286(E)N268(ER)X314(RR)X364(RO)X414(OR)X468(RS)X518(S)X3 f10 s554 1382(GL_INVALID_VALUE)N1 f1396(is)X1469(generated)X1802(if)X2 f1871(width)X1 f2068(or)X2 f2155(height)X1 f2375(is)X2448(negative.)X3 f554 1516(GL_INVALID_OPERATION)N1 f1600(is)X1673(generated)X2006(if)X3 f2075(glBitmap)X1 f2410(is)X2483(executed)X2789(between)X3077(the)X3195(execution)X3528(of)X3 f3616(glBegin)X1 f3894(and)X554 1612(the)N672(corresponding)X1151(execution)X1483(of)X3 f1570(glEnd)X1 f1773(.)X9 s266 1746(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 1842(glGet)N1 f761(with)X923(argument)X3 f1246(GL_CURRENT_RASTER_POSITION)X554 1938(glGet)N1 f761(with)X923(argument)X3 f1246(GL_CURRENT_RASTER_COLOR)X554 2034(glGet)N1 f761(with)X923(argument)X3 f1246(GL_CURRENT_RASTER_INDEX)X554 2130(glGet)N1 f761(with)X923(argument)X3 f1246(GL_CURRENT_RASTER_TEXTURE_COORDS)X554 2226(glGet)N1 f761(with)X923(argument)X3 f1246(GL_CURRENT_RASTER_POSITION_VALID)X1 f9 s266 2360(S)N268(SE)X310(EE)X356(E)X432(A)X434(AL)X488(LS)X534(SO)X576(O)X3 f10 s554 2456(glDrawPixels)N1 f1008(,)X3 f1048(glPixelStore)X1 f1462(,)X3 f1502(glPixelTransfer)X1 f2036(,)X3 f2076(glRasterPos)X1 f266 6144(July)N419(22,)X539(1997)X3794(Page)X3970(2)X10 f0 6428(h)N24(hhh)X4176(h)X4200(hhh)X2 p%%Trailerxtxs
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -