⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fglutesscallback.ps

📁 计算机图形学~想必是很多人需要的~在此共享一下
💻 PS
📖 第 1 页 / 共 3 页
字号:
1 f954 4624(The)N1101(same)X1288(as)X1378(the)X3 f1499(GLU_TESS_BEGIN)X1 f2226(callback)X2517(except)X2750(that)X2893(it)X2960(takes)X3148(an)X3247(additional)X3590(pointer)X3840(argu-)X954 4720(ment.)N1166(This)X1340(pointer)X1599(is)X1684(identical)X1992(to)X2085(the)X2214(opaque)X2477(pointer)X2735(provided)X3051(when)X3 f3256(fgluTessBeginPolygon)X1 f954 4816(was)N1099(called.)X1331(The)X1476(function)X1763(prototype)X2090(for)X2204(this)X2339(callback)X2627(is:)X954 4912(void)N1116(beginData)X1466(\()X1513(GLenum)X1818(type,)X1996(void)X2158(*polygon_data)X2654(\);)X3 f554 5046 -0.1838(GLU_TESS_EDGE_FLAG)AN1 f954 5142(The)N1103(edge)X1279(\257ag)X1423(callback)X1715(is)X1792(similar)X2039(to)X3 f2126(glEdgeFlag)X1 f2512(.)X2557(The)X2707(function)X2999(takes)X3189(a)X3250(single)X3466(boolean)X3745(\257ag)X3890(that)X954 5238(indicates)N1262(which)X1481(edges)X1687(lie)X1790(on)X1893(the)X2014(polygon)X2299(boundary.)X2645(If)X2722(the)X2843(\257ag)X2985(is)X3 f3060(GL_TRUE)X1 f3437(,)X3479(then)X3639(each)X3809(vertex)X954 5334(that)N1094(follows)X1354(begins)X1583(an)X1679(edge)X1852(that)X1993(lies)X2125(on)X2226(the)X2345(polygon)X2628(boundary,)X2972(that)X3113(is,)X3207(an)X3304(edge)X3477(that)X3618(separates)X3934(an)X954 5430(interior)N1215(region)X1445(from)X1626(an)X1727(exterior)X2002(one.)X2183(If)X2262(the)X2385(\257ag)X2530(is)X3 f2608(GL_FALSE)X1 f3020(,)X3065(then)X3228(each)X3401(vertex)X3626(that)X3770(follows)X954 5526(begins)N1187(an)X1287(edge)X1463(that)X1607(lies)X1742(in)X1829(the)X1952(polygon)X2239(interior.)X2520(The)X2670(edge)X2847(\257ag)X2992(callback)X3285(\(if)X3386(de\256ned\))X3674(is)X3752(invoked)X954 5622(before)N1180(the)X1298(\256rst)X1442(vertex)X1663(callback.)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(LU)X410(UT)X464(TE)X510(ES)X556(SS)X598(SC)X640(CA)X690(AL)X744(LL)X790(LB)X836(BA)X886(AC)X940(CK)X990(K)X1048(\()X1050(\()X1086(\))X1088(\))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)X3164(F)X3166(FG)X3208(GL)X3262(LU)X3308(UT)X3362(TE)X3408(ES)X3454(SS)X3496(SC)X3538(CA)X3588(AL)X3642(LL)X3688(LB)X3734(BA)X3784(AC)X3838(CK)X3888(K)X3946(\()X3948(\()X3984(\))X3986(\))X10 s954 864(Since)N1152(triangle)X1417(fans)X1571(and)X1707(triangle)X1972(strips)X2165(do)X2265(not)X2388(support)X2649(edge)X2822(\257ags,)X3014(the)X3133(begin)X3332(callback)X3621(is)X3695(not)X3818(called)X954 960(with)N3 f1121(GL_TRIANGLE_FAN)X1 f1932(or)X3 f2024(GL_TRIANGLE_STRIP)X1 f2904(if)X2977(a)X3037(non-NULL)X3422(edge)X3598(\257ag)X3742(callback)X954 1056(is)N1045(provided.)X1388(\(If)X1507(the)X1643(callback)X1949(is)X2040(initialized)X2398(to)X2498(NULL,)X2770(there)X2969(is)X3061(no)X3180(impact)X3437(on)X3556 0.2708(performance\).)AX954 1152(Instead,)N1231(the)X1354(fans)X1513(and)X1654(strips)X1852(are)X1976(converted)X2318(to)X2405(independent)X2822(triangles.)X3143(The)X3293(function)X3585(prototype)X3916(for)X954 1248(this)N1089(callback)X1377(is:)X954 1344(void)N1116(edgeFlag)X1430(\()X1477(GLboolean)X1858(\257ag)X1998(\);)X3 f554 1478(GLU_TESS_EDGE_FLAG_DATA)N1 f954 1574(The)N1121(same)X1328(as)X1437(the)X3 f1577 -0.1838(GLU_TESS_EDGE_FLAG)AX1 f2554(callback)X2864(except)X3116(that)X3278(it)X3364(takes)X3571(an)X3690(additional)X954 1670(pointer)N1209(argument.)X1560(This)X1730(pointer)X1985(is)X2066(identical)X2370(to)X2459(the)X2584(opaque)X2843(pointer)X3097(provided)X3409(when)X3 f3610(fgluTessBe-)X954 1766(ginPolygon)N1 f1355(was)X1500(called.)X1732(The)X1877(function)X2164(prototype)X2491(for)X2605(this)X2740(callback)X3028(is:)X954 1862(void)N1116(edgeFlagData)X1582(\()X1629(GLboolean)X2010(\257ag,)X2170(void)X2332(*polygon_data)X2828(\);)X3 f554 1996(GLU_TESS_VERTEX)N1 f954 2092(The)N1101(vertex)X1324(callback)X1614(is)X1689(invoked)X1969(between)X2259(the)X2379(begin)X2579(and)X2717(end)X2855(callbacks.)X3217(It)X3289(is)X3365(similar)X3610(to)X3 f3695(glVertex)X1 f3990(,)X954 2188(and)N1103(it)X1180(de\256nes)X1440(the)X1571(vertices)X1854(of)X1954(the)X2085(triangles)X2394(created)X2659(by)X2771(the)X2901(tessellation)X3293(process.)X3586(The)X3743(function)X954 2284(takes)N1145(a)X1207(pointer)X1460(as)X1553(its)X1654(only)X1822(argument.)X2192(This)X2361(pointer)X2615(is)X2695(identical)X2998(to)X3087(the)X3212(opaque)X3471(pointer)X3725(provided)X954 2380(by)N1061(the)X1186(user)X1347(when)X1548(the)X1673(vertex)X1901(was)X2053(described)X2388(\(see)X3 f2545(fgluTessVertex)X1 f3062(\).)X3136(The)X3288(function)X3582(prototype)X3916(for)X954 2476(this)N1089(callback)X1377(is:)X954 2572(void)N1116(vertex)X1337(\()X1384(void)X1546(*vertex_data)X1981(\);)X3 f554 2706(GLU_TESS_VERTEX_DATA)N1 f954 2802(The)N1111(same)X1308(as)X1407(the)X3 f1537(GLU_TESS_VERTEX)X1 f2349(callback)X2650(except)X2893(that)X3046(it)X3123(takes)X3321(an)X3430(additional)X3783(pointer)X954 2898(argument.)N1310(This)X1485(pointer)X1745(is)X1831(identical)X2140(to)X2235(the)X2366(opaque)X2631(pointer)X2891(provided)X3209(when)X3 f3415(fgluTessBeginPo-)X954 2994(lygon)N1 f1160(was)X1305(called.)X1537(The)X1682(function)X1969(prototype)X2296(for)X2410(this)X2545(callback)X2833(is:)X954 3090(void)N1116(vertexData)X1489(\()X1536(void)X1698(*vertex_data,)X2153(void)X2315(*polygon_data)X2811(\);)X3 f554 3224(GLU_TESS_END)N1 f954 3320(The)N1104(end)X1245(callback)X1538(serves)X1764(the)X1887(same)X2077(purpose)X2356(as)X3 f2449(glEnd)X1 f2652(.)X2698(It)X2773(indicates)X3084(the)X3208(end)X3350(of)X3443(a)X3505(primitive)X3824(and)X3966(it)X954 3416(takes)N1139(no)X1239(arguments.)X1613(The)X1758(function)X2045(prototype)X2372(for)X2486(this)X2621(callback)X2909(is:)X954 3512(void)N1116(end)X1252(\()X1299(void)X1461(\);)X3 f554 3646(GLU_TESS_END_DATA)N1 f954 3742(The)N1108(same)X1302(as)X1398(the)X3 f1525(GLU_TESS_END)X1 f2170(callback)X2468(except)X2708(that)X2858(it)X2932(takes)X3127(an)X3233(additional)X3583(pointer)X3840(argu-)X954 3838(ment.)N1166(This)X1340(pointer)X1599(is)X1684(identical)X1992(to)X2085(the)X2214(opaque)X2477(pointer)X2735(provided)X3051(when)X3 f3256(fgluTessBeginPolygon)X1 f954 3934(was)N1099(called.)X1331(The)X1476(function)X1763(prototype)X2090(for)X2204(this)X2339(callback)X2627(is:)X954 4030(void)N1116(endData)X1404(\()X1451(void)X1613(*polygon_data\);)X3 f554 4164(GLU_TESS_COMBINE)N1 f954 4260(The)N1099(combine)X1395(callback)X1683(is)X1756(called)X1968(to)X2050(create)X2263(a)X2320(new)X2475(vertex)X2697(when)X2892(the)X3011(tessellation)X3392(detects)X3636(an)X3733(intersec-)X954 4356(tion,)N1129(or)X1226(wishes)X1474(to)X1566(merge)X1797(features.)X2102(The)X2257(function)X2554(takes)X2749(four)X2913(arguments:)X3299(an)X3405(array)X3601(of)X3698(three)X3889(ele-)X954 4452(ments)N1166(each)X1335(of)X1423(type)X1582(GLdouble,)X1948(an)X2045(array)X2232(of)X2320(four)X2475(pointers,)X2775(an)X2873(array)X3061(of)X3150(four)X3306(elements)X3613(each)X3783(of)X3872(type)X954 4548(GL\257oat,)N1243(and)X1379(a)X1435(pointer)X1682(to)X1764(a)X1820(pointer.)X2087(The)X2232(prototype)X2559(is:)X954 4644(void)N1116(combine\()X1439(GLdouble)X1784(coords[3],)X2132(void)X2294(*vertex_data[4],)X1234 4740(GL\257oat)N1503(weight[4],)X1855(void)X2017(**outData)X2371(\);)X954 4874(The)N1121(vertex)X1364(is)X1459(de\256ned)X1737(as)X1846(a)X1924(linear)X2149(combination)X2591(of)X2700(up)X2822(to)X2926(four)X3102(existing)X3397(vertices,)X3709(stored)X3948(in)X2 f954 4970(vertex_data)N1 f1333(.)X1387(The)X1546(coef\256cients)X1950(of)X2051(the)X2183(linear)X2400(combination)X2834(are)X2967(given)X3179(by)X2 f3293(weight)X1 f3506(;)X3562(these)X3761(weights)X954 5066(always)N1197(add)X1333(up)X1433(to)X1515(1.)X1615(All)X1737(vertex)X1958(pointers)X2236(are)X2355(valid)X2536(even)X2709(when)X2904(some)X3094(of)X3182(the)X3301(weights)X3571(are)X3691(0.)X2 f3792(coords)X1 f954 5162(gives)N1143(the)X1261(location)X1539(of)X1626(the)X1744(new)X1898(vertex.)X954 5296(The)N1109(user)X1273(must)X1458(allocate)X1738(another)X2009(vertex,)X2260(interpolate)X2633(parameters)X3016(using)X2 f3220(vertex_data)X1 f3630(and)X2 f3777(weight)X1 f3990(,)X954 5392(and)N1099(return)X1320(the)X1447(new)X1610(vertex)X1840(pointer)X2096(in)X2 f2187(outData)X1 f2449(.)X2498(This)X2669(handle)X2912(is)X2994(supplied)X3294(during)X3531(rendering)X3867(call-)X954 5488(backs.)N1202(The)X1352(user)X1512(is)X

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -