📄 fglgetlight.ps
字号:
2080(value,)X2311(and)X9 f2464(-)X1 f2508(1.0)X2645(maps)X2850(to)X2948(the)X3082(most)X3273(negative)X3581(representable)X1354 4720(integer)N1601(value.)X1839(If)X1917(the)X2039(internal)X2308(value)X2506(is)X2583(outside)X2838(the)X2960(range)X3163([)X9 f3190(-)X1 f3234(1,)X3318(1],)X3429(the)X3551(corresponding)X1354 4816(integer)N1598(return)X1811(value)X2006(is)X2080(unde\256ned.)X2437(The)X2583(initial)X2790(value)X2985(for)X3 f3100(GL_LIGHT0)X1 f3577(is)X3651(\(1,)X3759(1,)X3840(1,)X3921(1\);)X1354 4912(for)N1468(other)X1653(lights,)X1870(the)X1988(initial)X2194(value)X2388(is)X2461(\(0,)X2568(0,)X2648(0,)X2728(0\).)X3 f554 5046(GL_SPECULAR)N2 f1354(params)X1 f1634(returns)X1897(four)X2071(integer)X2335(or)X2443(\257oating-point)X2919(values)X3165(representing)X3603(the)X3742(specular)X1354 5142(intensity)N1654(of)X1746(the)X1869(light)X2039(source.)X2313(Integer)X2565(values,)X2814(when)X3012(requested,)X3364(are)X3487(linearly)X3756(mapped)X1354 5238(from)N1531(the)X1650(internal)X1916(\257oating-point)X2372(representation)X2848(such)X3016(that)X3157(1.0)X3278(maps)X3469(to)X3553(the)X3673(most)X3850(posi-)X1354 5334(tive)N1497(representable)X1949(integer)X2195(value,)X2411(and)X9 f2549(-)X1 f2593(1.0)X2715(maps)X2906(to)X2990(the)X3110(most)X3287(negative)X3581(representable)X1354 5430(integer)N1601(value.)X1839(If)X1917(the)X2039(internal)X2308(value)X2506(is)X2583(outside)X2838(the)X2960(range)X3163([)X9 f3190(-)X1 f3234(1,)X3318(1],)X3429(the)X3551(corresponding)X1354 5526(integer)N1598(return)X1811(value)X2006(is)X2080(unde\256ned.)X2437(The)X2583(initial)X2790(value)X2985(for)X3 f3100(GL_LIGHT0)X1 f3577(is)X3651(\(1,)X3759(1,)X3840(1,)X3921(1\);)X1354 5622(for)N1468(other)X1653(lights,)X1870(the)X1988(initial)X2194(value)X2388(is)X2461(\(0,)X2568(0,)X2648(0,)X2728(0\).)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(F)N268(FG)X310(GL)X364(LG)X410(GE)X464(ET)X510(TL)X556(LI)X602(IG)X628(GH)X682(HT)X736(T)X786(\()X788(\()X824(\))X826(\))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)X3426(F)X3428(FG)X3470(GL)X3524(LG)X3570(GE)X3624(ET)X3670(TL)X3716(LI)X3762(IG)X3788(GH)X3842(HT)X3896(T)X3946(\()X3948(\()X3984(\))X3986(\))X3 f10 s554 864(GL_POSITION)N2 f1354(params)X1 f1625(returns)X1879(four)X2044(integer)X2298(or)X2396(\257oating-point)X2862(values)X3098(representing)X3526(the)X3655(position)X3943(of)X1354 960(the)N1482(light)X1658(source.)X1938(Integer)X2196(values,)X2451(when)X2655(requested,)X3012(are)X3140(computed)X3485(by)X3594(rounding)X3912(the)X1354 1056(internal)N1621(\257oating-point)X2078(values)X2305(to)X2389(the)X2510(nearest)X2761(integer)X3007(value.)X3244(The)X3392(returned)X3683(values)X3911(are)X1354 1152(those)N1569(maintained)X1970(in)X2077(eye)X2234(coordinates.)X2689(They)X2899(will)X3068(not)X3215(be)X3336(equal)X3555(to)X3662(the)X3805(values)X1354 1248(speci\256ed)N1672(using)X3 f1879(fglLight)X1 f2154(,)X2208(unless)X2442(the)X2574(modelview)X2964(matrix)X3207(was)X3366(identity)X3644(at)X3736(the)X3868(time)X3 f1354 1344(fglLight)N1 f1649(was)X1794(called.)X2026(The)X2171(initial)X2377(value)X2571(is)X2644(\(0,)X2751(0,)X2831(1,)X2911(0\).)X3 f554 1478(GL_SPOT_DIRECTION)N2 f1354 1574(params)N1 f1619(returns)X1867(three)X2053(integer)X2301(or)X2393(\257oating-point)X2854(values)X3085(representing)X3508(the)X3632(direction)X3943(of)X1354 1670(the)N1482(light)X1658(source.)X1938(Integer)X2196(values,)X2451(when)X2655(requested,)X3012(are)X3140(computed)X3485(by)X3594(rounding)X3912(the)X1354 1766(internal)N1621(\257oating-point)X2078(values)X2305(to)X2389(the)X2510(nearest)X2761(integer)X3007(value.)X3244(The)X3392(returned)X3683(values)X3911(are)X1354 1862(those)N1569(maintained)X1970(in)X2077(eye)X2234(coordinates.)X2689(They)X2899(will)X3068(not)X3215(be)X3336(equal)X3555(to)X3662(the)X3805(values)X1354 1958(speci\256ed)N1672(using)X3 f1879(fglLight)X1 f2154(,)X2208(unless)X2442(the)X2574(modelview)X2964(matrix)X3207(was)X3366(identity)X3644(at)X3736(the)X3868(time)X3 f1354 2054(fglLight)N1 f1656(was)X1808(called.)X2067(Although)X2396(spot)X2556(direction)X2868(is)X2948(normalized)X3336(before)X3569(being)X3774(used)X3948(in)X1354 2150(the)N1490(lighting)X1776(equation,)X2110(the)X2247(returned)X2554(values)X2798(are)X2936(the)X3073(transformed)X3500(versions)X3806(of)X3912(the)X1354 2246(speci\256ed)N1659(values)X1884(prior)X2060(to)X2142(normalization.)X2627(The)X2772(initial)X2978(value)X3172(is)X3245(\(0,)X3352(0,)X9 f3432(-)X1 f3476(1\).)X3 f554 2380(GL_SPOT_EXPONENT)N2 f1354 2476(params)N1 f1637(returns)X1904(a)X1984(single)X2219(integer)X2486(or)X2597(\257oating-point)X3076(value)X3294(representing)X3735(the)X3877(spot)X1354 2572(exponent)N1670(of)X1759(the)X1879(light.)X2087(An)X2206(integer)X2450(value,)X2665(when)X2860(requested,)X3209(is)X3283(computed)X3620(by)X3721(rounding)X1354 2668(the)N1475(internal)X1743(\257oating-point)X2201(representation)X2679(to)X2764(the)X2885(nearest)X3136(integer.)X3402(The)X3550(initial)X3759(value)X3957(is)X1354 2764(0.)N3 f554 2898(GL_SPOT_CUTOFF)N2 f1354(params)X1 f1616(returns)X1861(a)X1919(single)X2132(integer)X2377(or)X2466(\257oating-point)X2924(value)X3121(representing)X3541(the)X3662(spot)X3818(cutoff)X1354 2994(angle)N1550(of)X1639(the)X1759(light.)X1967(An)X2087(integer)X2331(value,)X2546(when)X2741(requested,)X3090(is)X3164(computed)X3501(by)X3602(rounding)X3912(the)X1354 3090(internal)N1634(\257oating-point)X2104(representation)X2594(to)X2691(the)X2824(nearest)X3087(integer.)X3365(The)X3525(initial)X3747(value)X3957(is)X1354 3186(180.)N3 f554 3320(GL_CONSTANT_ATTENUATION)N2 f1354 3416(params)N1 f1624(returns)X1877(a)X1943(single)X2164(integer)X2417(or)X2515(\257oating-point)X2981(value)X3186(representing)X3614(the)X3743(constant)X1354 3512(\(not)N1510(distance-related\))X2073(attenuation)X2456(of)X2550(the)X2675(light.)X2888(An)X3013(integer)X3262(value,)X3482(when)X3682(requested,)X1354 3608(is)N1436(computed)X1781(by)X1890(rounding)X2209(the)X2337(internal)X2612(\257oating-point)X3077(representation)X3562(to)X3654(the)X3782(nearest)X1354 3704(integer.)N1617(The)X1762(initial)X1968(value)X2162(is)X2235(1.)X3 f554 3838(GL_LINEAR_ATTENUATION)N2 f1354 3934(params)N1 f1632(returns)X1894(a)X1969(single)X2199(integer)X2461(or)X2567(\257oating-point)X3041(value)X3254(representing)X3690(the)X3827(linear)X1354 4030(attenuation)N1733(of)X1823(the)X1944(light.)X2153(An)X2274(integer)X2519(value,)X2735(when)X2931(requested,)X3281(is)X3356(computed)X3694(by)X3796(round-)X1354 4126(ing)N1493(the)X1629(internal)X1912(\257oating-point)X2385(representation)X2878(to)X2978(the)X3114(nearest)X3380(integer.)X3661(The)X3824(initial)X1354 4222(value)N1548(is)X1621(0.)X3 f554 4356(GL_QUADRATIC_ATTENUATION)N2 f1354 4452(params)N1 f1621(returns)X1871(a)X1934(single)X2152(integer)X2402(or)X2496(\257oating-point)X2958(value)X3160(representing)X3585(the)X3711(quadratic)X1354 4548(attenuation)N1733(of)X1823(the)X1944(light.)X2153(An)X2274(integer)X2519(value,)X2735(when)X2931(requested,)X3281(is)X3356(computed)X3694(by)X3796(round-)X1354 4644(ing)N1493(the)X1629(internal)X1912(\257oating-point)X2385(representation)X2878(to)X2978(the)X3114(nearest)X3380(integer.)X3661(The)X3824(initial)X1354 4740(value)N1548(is)X1621(0.)X9 s266 4874(N)N268(NO)X322(OT)X376(TE)X422(ES)X468(S)X10 s554 4970(It)N623(is)X696(always)X939(the)X1057(case)X1216(that)X3 f1356(GL_LIGHT)X1 f1772($i$)X1894(=)X3 f1959(GL_LIGHT0)X1 f2435(+)X2500($i$.)X554 5104(If)N628(an)X724(error)X901(is)X974(generated,)X1327(no)X1427(change)X1675(is)X1748(made)X1942(to)X2024(the)X2142(contents)X2429(of)X2 f2516(params)X1 f(.)S9 s266 5238(E)N268(ER)X314(RR)X364(RO)X414(OR)X468(RS)X518(S)X3 f10 s554 5334(GL_INVALID_ENUM)N1 f1361(is)X1434(generated)X1767(if)X2 f1836(light)X1 f2002(or)X2 f2089(pname)X1 f2323(is)X2396(not)X2518(an)X2614(accepted)X2916(value.)X3 f554 5468(GL_INVALID_OPERATION)N1 f1602(is)X1677(generated)X2012(if)X3 f2083(fglGetLight)X1 f2505(is)X2580(executed)X2889(between)X3180(the)X3301(execution)X3636(of)X3 f3726(fglBegin)X1 f554 5564(and)N690(the)X808(corresponding)X1287(execution)X1619(of)X3 f1706(fglEnd)X1 f1936(.)X9 s266 5698(S)N268(SE)X310(EE)X356(E)X432(A)X434(AL)X488(LS)X534(SO)X576(O)X3 f10 s554 5794(fglLight)N1 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 + -