📄 vertexpointer.ps
字号:
2783(type)X1 f2945(the)X3071(data)X3233(type)X3399(of)X3494(the)X3620(coordinates.)X2 f554 3108(stride)N1 f756(speci\256es)X1052(the)X1170(byte)X1328(stride)X1526(from)X1702(one)X1838(vertex)X2059(to)X2141(the)X2259(next)X2417(allowing)X2717(vertexes)X3005(and)X3141(attributes)X3459(to)X3541(be)X3637(packed)X3886(into)X554 3204(a)N612(single)X825(array)X1013(or)X1102(stored)X1320(in)X1404(separate)X1690(arrays.)X1948(\(Single-array)X2393(storage)X2646(may)X2805(be)X2902(more)X3088(ef\256cient)X3372(on)X3473(some)X3663(implemen-)X554 3300(tations;)N821(see)X3 f957(glInterleavedArrays)X1 f1652(.\))X1752(When)X1977(a)X2046(vertex)X2280(array)X2479(is)X2565(speci\256ed,)X2 f2903(size)X1 f(,)S2 f3076(type)X1 f3210(,)X2 f3263(stride)X1 f3445(,)X3498(and)X2 f3647(pointer)X1 f3911(are)X554 3396(saved)N757(as)X844(client-side)X1198(state.)X554 3530(To)N663(enable)X893(and)X1029(disable)X1276(the)X1394(vertex)X1615(array,)X1821(call)X3 f1957(glEnableClientState)X1 f2661(and)X3 f554 3626(glDisableClientState)N1 f1287(with)X1464(the)X1597(argument)X3 f1935(GL_VERTEX_ARRAY)X1 f2753(.)X2808(If)X2897(enabled,)X3202(the)X3335(vertex)X3572(array)X3774(is)X3863(used)X554 3722(when)N3 f748(glDrawArrays)X1 f1243(,)X3 f1283(glDrawElements)X1 f1853(,)X1893(or)X3 f1980(glArrayElement)X1 f2557(is)X2630(called.)X554 3856(Use)N3 f706(glDrawArrays)X1 f1228(to)X1317(construct)X1638(a)X1701(sequence)X2023(of)X2117(primitives)X2468(\(all)X2602(of)X2697(the)X2823(same)X3016(type\))X3209(from)X3393(prespeci\256ed)X3809(vertex)X554 3952(and)N700(vertex)X931(attribute)X1228(arrays.)X1495(Use)X3 f1650(glArrayElement)X1 f2237(to)X2329(specify)X2591(primitives)X2945(by)X3055(indexing)X3365(vertexes)X3663(and)X3809(vertex)X554 4048(attributes)N905(and)X3 f1054(glDrawElements)X1 f1657(to)X1752(construct)X2079(a)X2148(sequence)X2476(of)X2576(primitives)X2933(by)X3046(indexing)X3359(vertexes)X3660(and)X3809(vertex)X554 4144(attributes.)N9 s266 4278(N)N268(NO)X322(OT)X376(TE)X422(ES)X468(S)X3 f10 s554 4374(glVertexPointer)N1 f1123(is)X1196(available)X1506(only)X1668(if)X1737(the)X1855(GL)X1982(version)X2238(is)X2311(1.1)X2431(or)X2518(greater.)X554 4508(The)N718(vertex)X958(array)X1163(is)X1255(initially)X1542(disabled)X1848(and)X2003(isn't)X2184(accessed)X2505(when)X3 f2718(glArrayElement)X1 f3275(,)X3 f3334(glDrawElements)X1 f3943(or)X3 f554 4604(glDrawArrays)N1 f1069(is)X1142(called.)X554 4738(Execution)N899(of)X3 f986(glVertexPointer)X1 f1556(is)X1630(not)X1753(allowed)X2028(between)X2317(the)X2436(execution)X2769(of)X3 f2857(glBegin)X1 f3135(and)X3272(the)X3391(corresponding)X3871(exe-)X554 4834(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 4930(unde\256ned.)N3 f554 5064(glVertexPointer)N1 f1123(is)X1196(typically)X1496(implemented)X1934(on)X2034(the)X2152(client)X2350(side.)X554 5198(Vertex)N798(array)X989(parameters)X1367(are)X1491(client-side)X1850(state)X2022(and)X2163(are)X2287(therefore)X2603(not)X2731(saved)X2940(or)X3033(restored)X3318(by)X3 f3424(glPushAttrib)X1 f3894(and)X3 f554 5294(glPopAttrib)N1 f963(.)X1023(Use)X3 f1168(glPushClientAttrib)X1 f1841(and)X3 f1977(glPopClientAttrib)X1 f2615(instead.)X9 s266 5428(E)N268(ER)X314(RR)X364(RO)X414(OR)X468(RS)X518(S)X3 f10 s554 5524(GL_INVALID_VALUE)N1 f1396(is)X1469(generated)X1802(if)X2 f1871(size)X1 f2011(is)X2084(not)X2206(2,)X2286(3,)X2366(or)X2453(4.)X3 f554 5658(GL_INVALID_ENUM)N1 f1361(is)X1434(generated)X1767(if)X2 f1836(type)X1 f1990(is)X2063(is)X2136(not)X2258(an)X2354(accepted)X2656(value.)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(LV)X368(VE)X422(ER)X468(RT)X518(TE)X564(EX)X610(XP)X664(PO)X706(OI)X760(IN)X786(NT)X840(TE)X886(ER)X932(R)X986(\()X988(\()X1024(\))X1026(\))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)X3226(G)X3228(GL)X3282(LV)X3328(VE)X3382(ER)X3428(RT)X3478(TE)X3524(EX)X3570(XP)X3624(PO)X3666(OI)X3720(IN)X3746(NT)X3800(TE)X3846(ER)X3892(R)X3946(\()X3948(\()X3984(\))X3986(\))X3 f10 s554 864(GL_INVALID_VALUE)N1 f1396(is)X1469(generated)X1802(if)X2 f1871(stride)X1 f2073(is)X2146(negative.)X9 s266 998(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 1094(glIsEnabled)N1 f981(with)X1143(argument)X3 f1466(GL_VERTEX_ARRAY)X554 1190(glGet)N1 f761(with)X923(argument)X3 f1246(GL_VERTEX_ARRAY_SIZE)X554 1286(glGet)N1 f761(with)X923(argument)X3 f1246(GL_VERTEX_ARRAY_TYPE)X554 1382(glGet)N1 f761(with)X923(argument)X3 f1246(GL_VERTEX_ARRAY_STRIDE)X554 1478(glGetPointerv)N1 f1055(with)X1217(argument)X3 f1540(GL_VERTEX_ARRAY_POINTER)X1 f9 s266 1612(S)N268(SE)X310(EE)X356(E)X432(A)X434(AL)X488(LS)X534(SO)X576(O)X3 f10 s554 1708(glArrayElement)N1 f1111(,)X3 f1151(glColorPointer)X1 f1663(,)X3 f1703(glDrawArrays)X1 f2198(,)X3 f2238(glDrawElements)X1 f2808(,)X3 f554 1804(glEdgeFlagPointer)N1 f(,)S3 f1234(glEnable)X1 f1535(,)X3 f1575(glGetPointerv)X1 f2056(,)X3 f2096(glIndexPointer)X1 f2607(,)X3 f554 1900(glInterleavedArrays)N1 f1249(,)X3 f1289(glNormalPointer)X1 f1868(,)X3 f1908(glPopClientAttrib)X1 f2526(,)X3 f2566(glPushClientAttrib)X1 f3219(,)X3 f3259(glTexCoordPointer)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 + -