📄 colorpointer.ps
字号:
2397(an)X2495(array)X2683(of)X2772(color)X2959(components)X3368(to)X3452(use)X3581(when)X3777(render-)X554 3012(ing.)N2 f719(size)X1 f862(speci\256es)X1161(the)X1282(number)X1550(of)X1640(components)X2050(per)X2176(color,)X2384(and)X2523(must)X2701(be)X2800(3)X2862(or)X2951(4.)X2 f3053(type)X1 f3209(speci\256es)X3507(the)X3627(data)X3783(type)X3943(of)X554 3108(each)N724(color)X911(component,)X1309(and)X2 f1447(stride)X1 f1651(speci\256es)X1949(the)X2069(byte)X2229(stride)X2429(from)X2607(one)X2745(color)X2933(to)X3018(the)X3139(next)X3300(allowing)X3603(vertexes)X3894(and)X554 3204(attributes)N877(to)X964(be)X1065(packed)X1318(into)X1467(a)X1528(single)X1743(array)X1933(or)X2024(stored)X2244(in)X2330(separate)X2618(arrays.)X2879(\(Single-array)X3327(storage)X3583(may)X3745(be)X3845(more)X554 3300(ef\256cient)N837(on)X937(some)X1126(implementations;)X1701(see)X3 f1824(glInterleavedArrays)X1 f2519(.\))X554 3434(When)N766(a)X822(color)X1007(array)X1193(is)X1266(speci\256ed,)X2 f1591(size)X1 f(,)S2 f1751(type)X1 f1885(,)X2 f1925(stride)X1 f2107(,)X2147(and)X2 f2283(pointer)X1 f2534(are)X2653(saved)X2856(as)X2943(client-side)X3297(state.)X554 3568(To)N663(enable)X893(and)X1029(disable)X1276(the)X1394(color)X1579(array,)X1785(call)X3 f1921(glEnableClientState)X1 f2625(and)X3 f554 3664(glDisableClientState)N1 f1276(with)X1442(the)X1564(argument)X3 f1891(GL_COLOR_ARRAY)X1 f2669(.)X2713(If)X2791(enabled,)X3085(the)X3207(color)X3396(array)X3586(is)X3664(used)X3836(when)X3 f554 3760(glDrawArrays)N1 f1049(,)X3 f1089(glDrawElements)X1 f1659(,)X1699(or)X3 f1786(glArrayElement)X1 f2363(is)X2436(called.)X9 s266 3894(N)N268(NO)X322(OT)X376(TE)X422(ES)X468(S)X3 f10 s554 3990(glColorPointer)N1 f1086(is)X1159(available)X1469(only)X1631(if)X1700(the)X1818(GL)X1945(version)X2201(is)X2274(1.1)X2394(or)X2481(greater.)X554 4124(The)N725(color)X936(array)X1148(is)X1247(initially)X1541(disabled)X1855(and)X2018(isn't)X2207(accessed)X2536(when)X3 f2757(glArrayElement)X1 f3314(,)X3 f3381(glDrawArrays)X1 f3876(,)X3943(or)X3 f554 4220(glDrawElements)N1 f1144(is)X1217(called.)X554 4354(Execution)N902(of)X3 f992(glColorPointer)X1 f1527(is)X1603(not)X1728(allowed)X2005(between)X2296(the)X2418(execution)X2754(of)X3 f2845(glBegin)X1 f3126(and)X3266(the)X3388(corresponding)X3871(exe-)X554 4450(cution)N788(of)X3 f889(glEnd)X1 f1092(,)X1146(but)X1282(an)X1392(error)X1583(may)X1755(or)X1856(may)X2028(not)X2164(be)X2274(generated.)X2641(If)X2729(no)X2843(error)X3034(is)X3121(generated,)X3488(the)X3620(operation)X3957(is)X554 4546(unde\256ned.)N3 f554 4680(glColorPointer)N1 f1086(is)X1159(typically)X1459(implemented)X1897(on)X1997(the)X2115(client)X2313(side.)X554 4814(Color)N763(array)X956(parameters)X1337(are)X1464(client-side)X1826(state)X2001(and)X2145(are)X2272(therefore)X2591(not)X2721(saved)X2932(or)X3027(restored)X3314(by)X3 f3422(glPushAttrib)X1 f3894(and)X3 f554 4910(glPopAttrib)N1 f963(.)X1023(Use)X3 f1168(glPushClientAttrib)X1 f1841(and)X3 f1977(glPopClientAttrib)X1 f2615(instead.)X9 s266 5044(E)N268(ER)X314(RR)X364(RO)X414(OR)X468(RS)X518(S)X3 f10 s554 5140(GL_INVALID_VALUE)N1 f1396(is)X1469(generated)X1802(if)X2 f1871(size)X1 f2011(is)X2084(not)X2206(3)X2266(or)X2353(4.)X3 f554 5274(GL_INVALID_ENUM)N1 f1361(is)X1434(generated)X1767(if)X2 f1836(type)X1 f1990(is)X2063(not)X2185(an)X2281(accepted)X2583(value.)X3 f554 5408(GL_INVALID_VALUE)N1 f1396(is)X1469(generated)X1802(if)X2 f1871(stride)X1 f2073(is)X2146(negative.)X9 s266 5542(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 5638(glIsEnabled)N1 f981(with)X1143(argument)X3 f1466(GL_COLOR_ARRAY)X554 5734(glGet)N1 f761(with)X923(argument)X3 f1246(GL_COLOR_ARRAY_SIZE)X554 5830(glGet)N1 f761(with)X923(argument)X3 f1246(GL_COLOR_ARRAY_TYPE)X1 f266 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(LC)X368(CO)X418(OL)X472(LO)X518(OR)X572(RP)X622(PO)X664(OI)X718(IN)X744(NT)X798(TE)X844(ER)X890(R)X944(\()X946(\()X982(\))X984(\))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)X3268(G)X3270(GL)X3324(LC)X3370(CO)X3420(OL)X3474(LO)X3520(OR)X3574(RP)X3624(PO)X3666(OI)X3720(IN)X3746(NT)X3800(TE)X3846(ER)X3892(R)X3946(\()X3948(\()X3984(\))X3986(\))X3 f10 s554 864(glGet)N1 f761(with)X923(argument)X3 f1246(GL_COLOR_ARRAY_STRIDE)X554 960(glGetPointerv)N1 f1055(with)X1217(argument)X3 f1540(GL_COLOR_ARRAY_POINTER)X1 f9 s266 1094(S)N268(SE)X310(EE)X356(E)X432(A)X434(AL)X488(LS)X534(SO)X576(O)X3 f10 s554 1190(glArrayElement)N1 f1111(,)X3 f1151(glDrawArrays)X1 f1646(,)X3 f1686(glDrawElements)X1 f2256(,)X3 f2296(glEdgeFlagPointer)X1 f(,)S3 f554 1286(glEnable)N1 f855(,)X3 f905(glGetPointerv)X1 f1386(,)X3 f1436(glIndexPointer)X1 f1947(,)X3 f1997(glInterleavedArrays)X1 f2692(,)X3 f2742(glNormalPointer)X1 f3321(,)X3 f3372(glPopClientAttrib)X1 f3990(,)X3 f554 1382(glPushClientAttrib)N1 f1207(,)X3 f1247(glTexCoordPointer)X1 f1910(,)X3 f1950(glVertexPointer)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 + -