📄 rasterpos.ps
字号:
2 f1675(*v)X1 f1771(\))X554 1824(void)N3 f716(glRasterPos4sv)X1 f1237(\()X1284(const)X1473(GLshort)X2 f1760(*v)X1 f1856(\))X9 s266 2054(P)N268(PA)X310(AR)X364(RA)X414(AM)X468(ME)X534(ET)X580(TE)X626(ER)X672(RS)X722(S)X2 f10 s554 2150(v)N1 f842(Speci\256es)X1155(a)X1215(pointer)X1466(to)X1552(an)X1652(array)X1842(of)X1933(two,)X2097(three,)X2302(or)X2393(four)X2551(elements,)X2881(specifying)X3240($x$,)X3405($y$,)X3570($z$,)X3731(and)X3872($w$)X842 2246(coordinates,)N1252(respectively.)X9 s266 2380(D)N268(DE)X322(ES)X368(SC)X410(CR)X460(RI)X510(IP)X536(PT)X578(TI)X624(IO)X650(ON)X704(N)X10 s554 2476(The)N700(GL)X828(maintains)X1160(a)X1217(3D)X1336(position)X1614(in)X1697(window)X1976(coordinates.)X2407(This)X2571(position,)X2870(called)X3084(the)X3204(raster)X3405(position,)X3704(is)X3779(used)X3948(to)X554 2572(position)N852(pixel)X1053(and)X1210(bitmap)X1473(write)X1679(operations.)X2074(It)X2164(is)X2258(maintained)X2655(with)X2838(subpixel)X3150(accuracy.)X3518(See)X3 f3675(glBitmap)X1 f3990(,)X3 f554 2668(glDrawPixels)N1 f1008(,)X1048(and)X3 f1184(glCopyPixels)X1 f1628(.)X554 2802(The)N706(current)X962(raster)X1169(position)X1454(consists)X1735(of)X1830(three)X2019(window)X2305(coordinates)X2703(\($x$,)X2898($y$,)X3066($z$\),)X3257(a)X3321(clip)X3469(coordinate)X3836(value)X554 2898(\($w$\),)N790(an)X890(eye)X1026(coordinate)X1389(distance,)X1696(a)X1756(valid)X1940(bit,)X2068(and)X2208(associated)X2561(color)X2749(data)X2906(and)X3045(texture)X3291(coordinates.)X3724(The)X3872($w$)X554 2994(coordinate)N933(is)X1026(a)X1102(clip)X1262(coordinate,)X1661(because)X1956($w$)X2134(is)X2227(not)X2369(projected)X2708(to)X2810(window)X3109(coordinates.)X3 f3560(glRasterPos4)X1 f554 3090(speci\256es)N859(object)X1084(coordinates)X1483($x$,)X1652($y$,)X1821($z$,)X1985(and)X2129($w$)X2295(explicitly.)X3 f2665(glRasterPos3)X1 f3143(speci\256es)X3447(object)X3671(coordinate)X554 3186($x$,)N718($y$,)X883(and)X1024($z$)X1165(explicitly,)X1512(while)X1715($w$)X1878(is)X1956(implicitly)X2291(set)X2405(to)X2492(1.)X3 f2597(glRasterPos2)X1 f3072(uses)X3235(the)X3358(argument)X3686(values)X3916(for)X554 3282($x$)N694(and)X830($y$)X970(while)X1168(implicitly)X1498(setting)X1731($z$)X1867(and)X2003($w$)X2161(to)X2243(0)X2303(and)X2439(1.)X554 3416(The)N700(object)X917(coordinates)X1308(presented)X1637(by)X3 f1738(glRasterPos)X1 f2169(are)X2290(treated)X2531(just)X2668(like)X2810(those)X3001(of)X3090(a)X3 f3148(glVertex)X1 f3465(command:)X3845(They)X554 3512(are)N678(transformed)X1090(by)X1194(the)X1316(current)X1568(modelview)X1948(and)X2088(projection)X2437(matrices)X2733(and)X2873(passed)X3111(to)X3197(the)X3319(clipping)X3605(stage.)X3834(If)X3912(the)X554 3608(vertex)N779(is)X856(not)X982(culled,)X1222(then)X1384(it)X1452(is)X1529(projected)X1852(and)X1993(scaled)X2219(to)X2306(window)X2589(coordinates,)X3004(which)X3225(become)X3500(the)X3623(new)X3782(current)X554 3704(raster)N773(position,)X1090(and)X1246(the)X3 f1384(GL_CURRENT_RASTER_POSITION_VALID)X1 f3067(\257ag)X3227(is)X3319(set.)X3487(If)X3580(the)X3717(vertex)X2 f3957(is)X1 f554 3800(culled,)N794(then)X956(the)X1078(valid)X1262(bit)X1370(is)X1447(cleared)X1704(and)X1844(the)X1966(current)X2218(raster)X2421(position)X2703(and)X2844(associated)X3199(color)X3389(and)X3530(texture)X3778(coordi-)X554 3896(nates)N739(are)X858(unde\256ned.)X554 4030(The)N703(current)X955(raster)X1158(position)X1439(also)X1592(includes)X1883(some)X2077(associated)X2432(color)X2622(data)X2781(and)X2922(texture)X3170(coordinates.)X3605(If)X3684(lighting)X3957(is)X554 4126(enabled,)N1027(then)X3 f1368(GL_CURRENT_RASTER_COLOR)X1 f2819(\(in)X3111(RGBA)X3536(mode\))X3943(or)X3 f554 4222(GL_CURRENT_RASTER_INDEX)N1 f1787(\(in)X1897(color)X2083(index)X2282(mode\))X2508(is)X2582(set)X2692(to)X2775(the)X2894(color)X3080(produced)X3400(by)X3501(the)X3620(lighting)X3889(cal-)X554 4318(culation)N832(\(see)X3 f982(glLight)X1 f1230(,)X3 f1270(glLightModel)X1 f1736(,)X1776(and)X3 f554 4414(glShadeModel)N1 f1042(\).)X1195(If)X1335(lighting)X1669(is)X1808(disabled,)X2181(current)X2495(color)X2747(\(in)X2923(RGBA)X3232(mode,)X3517(state)X3751(variable)X3 f554 4510(GL_CURRENT_COLOR)N1 f1438(\))X1488(or)X1578(color)X1766(index)X1966(\(in)X2077(color)X2264(index)X2464(mode,)X2684(state)X2853(variable)X3 f3134(GL_CURRENT_INDEX)X1 f3983(\))X554 4606(is)N627(used)X794(to)X876(update)X1110(the)X1228(current)X1476(raster)X1675(color.)X554 4740(Likewise,)N3 f964(GL_CURRENT_RASTER_TEXTURE_COORDS)X1 f2783(is)X2932(updated)X3282(as)X3446(a)X3579(function)X3943(of)X3 f554 4836(GL_CURRENT_TEXTURE_COORDS)N1 f1913(,)X1954(based)X2158(on)X2259(the)X2378(texture)X2622(matrix)X2852(and)X2989(the)X3108(texture)X3352(generation)X3712(functions)X554 4932(\(see)N3 f722(glTexGen)X1 f1055(\).)X1160(Finally,)X1444(the)X1580(distance)X1881(from)X2075(the)X2211(origin)X2440(of)X2545(the)X2681(eye)X2831(coordinate)X3208(system)X3468(to)X3568(the)X3704(vertex)X3943(as)X554 5028(transformed)N962(by)X1062(only)X1224(the)X1342(modelview)X1718(matrix)X1947(replaces)X3 f2231(GL_CURRENT_RASTER_DISTANCE)X1 f3599(.)X554 5162(Initially,)N855(the)X981(current)X1237(raster)X1444(position)X1729(is)X1810(\(0,)X1925(0,)X2013(0,)X2101(1\),)X2216(the)X2342(current)X2598(raster)X2805(distance)X3096(is)X3177(0,)X3265(the)X3391(valid)X3579(bit)X3692(is)X3774(set,)X3912(the)X554 5258(associated)N905(RGBA)X1148(color)X1334(is)X1408(\(1,)X1516(1,)X1597(1,)X1678(1\),)X1786(the)X1905(associated)X2256(color)X2442(index)X2640(is)X2713(1,)X2793(and)X2929(the)X3047(associated)X3397(texture)X3640(coordinates)X554 5354(are)N679(\(0,)X792(0,)X878(0,)X965(1\).)X1099(In)X1193(RGBA)X1442(mode,)X3 f1667(GL_CURRENT_RASTER_INDEX)X1 f2907(is)X2987(always)X3237(1;)X3326(in)X3415(color)X3607(index)X3812(mode,)X554 5450(the)N672(current)X920(raster)X1119(RGBA)X1361(color)X1546(always)X1789(maintains)X2120(its)X2215(initial)X2421(value.)X9 s266 5584(N)N268(NO)X322(OT)X376(TE)X422(ES)X468(S)X10 s554 5680(The)N699(raster)X898(position)X1175(is)X1248(modi\256ed)X1552(both)X1714(by)X3 f1814(glRasterPos)X1 f2244(and)X2380(by)X3 f2480(glBitmap)X1 f2795(.)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(LR)X368(RA)X418(AS)X472(ST)X514(TE)X560(ER)X606(RP)X656(PO)X698(OS)X752(S)X798(\()X800(\()X836(\))X838(\))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)X3414(G)X3416(GL)X3470(LR)X3516(RA)X3566(AS)X3620(ST)X3662(TE)X3708(ER)X3754(RP)X3804(PO)X3846(OS)X3900(S)X3946(\()X3948(\()X3984(\))X3986(\))X10 s554 864(When)N772(the)X896(raster)X1101(position)X1384(coordinates)X1780(are)X1905(invalid,)X2173(drawing)X2462(commands)X2835(that)X2981(are)X3106(based)X3315(on)X3422(the)X3547(raster)X3753(position)X554 960(are)N673(ignored)X938(\(that)X1105(is,)X1198(they)X1356(do)X1456(not)X1578(result)X1776(in)X1858(changes)X2137(to)X2219(GL)X2346(state\).)X554 1094(Calling)N3 f813(glDrawElements)X1 f1407(may)X1570(leave)X1765(the)X1888(current)X2141(color)X2331(or)X2423(index)X2626(indeterminate.)X3132(If)X3 f3211(glRasterPos)X1 f3646(is)X3724(executed)X554 1190(while)N761(the)X888(current)X1145(color)X1339(or)X1434(index)X1640(is)X1721(indeterminate,)X2210(the)X2336(current)X2592(raster)X2799(color)X2992(or)X3087(current)X3343(raster)X3550(index)X3756(remains)X554 1286(indeterminate.)N554 1420(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,)X3224(then)X3387(call)X3 f3528(glBitmap)X1 f3868(with)X554 1516(NULL)N788(as)X875(the)X2 f993(bitmap)X1 f1235(parameter.)X9 s266 1650(E)N268(ER)X314(RR)X364(RO)X414(OR)X468(RS)X518(S)X3 f10 s554 1746(GL_INVALID_OPERATION)N1 f1604(is)X1681(generated)X2018(if)X3 f2091(glRasterPos)X1 f2525(is)X2602(executed)X2912(between)X3204(the)X3326(execution)X3662(of)X3 f3753(glBegin)X1 f554 1842(and)N690(the)X808(corresponding)X1287(execution)X1619(of)X3 f1706(glEnd)X1 f1909(.)X9 s266 1976(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 2072(glGet)N1 f761(with)X923(argument)X3 f1246(GL_CURRENT_RASTER_POSITION)X554 2168(glGet)N1 f761(with)X923(argument)X3 f1246(GL_CURRENT_RASTER_POSITION_VALID)X554 2264(glGet)N1 f761(with)X923(argument)X3 f1246(GL_CURRENT_RASTER_DISTANCE)X554 2360(glGet)N1 f761(with)X923(argument)X3 f1246(GL_CURRENT_RASTER_COLOR)X554 2456(glGet)N1 f761(with)X923(argument)X3 f1246(GL_CURRENT_RASTER_INDEX)X554 2552(glGet)N1 f761(with)X923(argument)X3 f1246(GL_CURRENT_RASTER_TEXTURE_COORDS)X1 f9 s266 2686(S)N268(SE)X310(EE)X356(E)X432(A)X434(AL)X488(LS)X534(SO)X576(O)X3 f10 s554 2782(glBitmap)N1 f869(,)X3 f944(glCopyPixels)X1 f1388(,)X3 f1463(glDrawElements)X1 f2033(,)X3 f2108(glDrawPixels)X1 f2562(,)X3 f2637(glLight)X1 f2885(,)X3 f2960(glLightModel)X1 f3426(,)X3 f3502(glShadeModel)X1 f3990(,)X3 f554 2878(glTexCoord)N1 f963(,)X3 f1003(glTexGen)X1 f1336(,)X3 f1376(glVertex)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 + -