📄 fglrasterpos.ps
字号:
1620(\()X1667(CHARACTER*8)X2 f2251(v)X1 f2307(\))X554 1824(SUBROUTINE)N3 f1081(fglRasterPos4sv)X1 f1629(\()X1676(CHARACTER*8)X2 f2260(v)X1 f2316(\))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)N850(pixel)X1049(and)X1204(bitmap)X1465(write)X1669(operations.)X2062(It)X2150(is)X2242(maintained)X2637(with)X2818(subpixel)X3128(accuracy.)X3494(See)X3 f3648(fglBitmap)X1 f3990(,)X3 f554 2668(fglDrawPixels)N1 f1035(,)X1075(and)X3 f1211(fglCopyPixels)X1 f1682(.)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)N931(is)X1022(a)X1096(clip)X1254(coordinate,)X1651(because)X1944($w$)X2120(is)X2211(not)X2351(projected)X2688(to)X2788(window)X3084(coordinates.)X3 f3533(fglRasterPos4)X1 f554 3090(speci\256es)N857(object)X1080(coordinates)X1476($x$,)X1642($y$,)X1808($z$,)X1970(and)X2112($w$)X2276(explicitly.)X3 f2644(fglRasterPos3)X1 f3147(speci\256es)X3449(object)X3671(coordinate)X554 3186($x$,)N717($y$,)X880(and)X1019($z$)X1158(explicitly,)X1503(while)X1704($w$)X1865(is)X1941(implicitly)X2274(set)X2386(to)X2471(1.)X3 f2575(fglRasterPos2)X1 f3076(uses)X3238(the)X3360(argument)X3687(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)N711(object)X939(coordinates)X1341(presented)X1681(by)X3 f1793(fglRasterPos)X1 f2262(are)X2393(treated)X2645(just)X2793(like)X2946(those)X3148(of)X3248(a)X3 f3317(fglVertex)X1 f3672(command:)X554 3512(They)N746(are)X872(transformed)X1286(by)X1392(the)X1516(current)X1770(modelview)X2152(and)X2294(projection)X2645(matrices)X2943(and)X3085(passed)X3325(to)X3413(the)X3537(clipping)X3825(stage.)X554 3608(If)N635(the)X760(vertex)X988(is)X1068(not)X1197(culled,)X1440(then)X1605(it)X1676(is)X1756(projected)X2082(and)X2225(scaled)X2454(to)X2544(window)X2830(coordinates,)X3248(which)X3472(become)X3750(the)X3876(new)X554 3704(current)N806(raster)X1009(position,)X1310(and)X1450(the)X3 f1572(GL_CURRENT_RASTER_POSITION_VALID)X1 f3239(\257ag)X3383(is)X3459(set.)X3611(If)X3688(the)X3809(vertex)X2 f554 3800(is)N1 f627(culled,)X863(then)X1021(the)X1139(valid)X1319(bit)X1423(is)X1496(cleared)X1749(and)X1885(the)X2003(current)X2251(raster)X2450(position)X2727(and)X2863(associated)X3213(color)X3398(and)X3534(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(fglLight)X1 f1257(,)X3 f1297(fglLightModel)X1 f1790(,)X1830(and)X3 f554 4414(fglShadeModel)N1 f1069(\).)X1220(If)X1358(lighting)X1690(is)X1827(disabled,)X2198(current)X2510(color)X2759(\(in)X2932(RGBA)X3238(mode,)X3520(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 f720(fglTexGen)X1 f(\).)S1183(Finally,)X1465(the)X1599(distance)X1898(from)X2090(the)X2224(origin)X2451(of)X2554(the)X2688(eye)X2836(coordinate)X3212(system)X3471(to)X3570(the)X3705(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(fglRasterPos)X1 f2271(and)X2407(by)X3 f2507(fglBitmap)X1 f2849(.)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(LR)X410(RA)X460(AS)X514(ST)X556(TE)X602(ER)X648(RP)X698(PO)X740(OS)X794(S)X840(\()X842(\()X878(\))X880(\))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)X3372(F)X3374(FG)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 f809(fglDrawElements)X1 f1426(may)X1584(leave)X1774(the)X1893(current)X2142(color)X2328(or)X2416(index)X2615(indeterminate.)X3117(If)X3 f3192(fglRasterPos)X1 f3650(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)N665(set)X776(a)X834(valid)X1016(raster)X1217(position)X1497(outside)X1751(the)X1872(viewport,)X2200(\256rst)X2347(set)X2459(a)X2518(valid)X2701(raster)X2903(position,)X3203(then)X3364(call)X3 f3503(fglBitmap)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 f1606(is)X1685(generated)X2024(if)X3 f2099(fglRasterPos)X1 f2562(is)X2641(executed)X2953(between)X3247(the)X3372(execution)X3711(of)X3 f3805(fglBe-)X554 1842(gin)N1 f680(and)X816(the)X934(corresponding)X1413(execution)X1745(of)X3 f1832(fglEnd)X1 f2062(.)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(fglGet)N1 f788(with)X950(argument)X3 f1273(GL_CURRENT_RASTER_POSITION)X554 2168(fglGet)N1 f788(with)X950(argument)X3 f1273(GL_CURRENT_RASTER_POSITION_VALID)X554 2264(fglGet)N1 f788(with)X950(argument)X3 f1273(GL_CURRENT_RASTER_DISTANCE)X554 2360(fglGet)N1 f788(with)X950(argument)X3 f1273(GL_CURRENT_RASTER_COLOR)X554 2456(fglGet)N1 f788(with)X950(argument)X3 f1273(GL_CURRENT_RASTER_INDEX)X554 2552(fglGet)N1 f788(with)X950(argument)X3 f1273(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(fglBitmap)N1 f896(,)X3 f939(fglCopyPixels)X1 f1410(,)X3 f1453(fglDrawElements)X1 f2050(,)X3 f2094(fglDrawPixels)X1 f2575(,)X3 f2619(fglLight)X1 f2894(,)X3 f2938(fglLightModel)X1 f3431(,)X3 f3475(fglShadeModel)X1 f3990(,)X3 f554 2878(fglTexCoord)N1 f990(,)X3 f1030(fglTexGen)X1 f(,)S3 f1430(fglVertex)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 + -